38 lines
894 B
Nix
38 lines
894 B
Nix
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, easyjson }:
|
||
|
|
||
|
buildGoPackage rec {
|
||
|
pname = "nextcloud-spreed-signaling";
|
||
|
version = "0.1.0";
|
||
|
|
||
|
goPackagePath = "github.com/strukturag/nextcloud-spreed-signaling";
|
||
|
|
||
|
subPackages = [
|
||
|
"src/signaling"
|
||
|
"src/server"
|
||
|
"src/proxy"
|
||
|
];
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "strukturag";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = "01gy7jzifnaszjj8aqz64xrcsjidw5ddphyp7pprazfn09k1g55i";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ easyjson ];
|
||
|
|
||
|
goDeps = ./deps.nix;
|
||
|
|
||
|
preBuild = ''
|
||
|
ln -s $PWD/go/src/${goPackagePath}/src/* go/src
|
||
|
easyjson -all go/src/signaling/{api_signaling,api_backend,api_proxy,natsclient,room}.go
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Standalone signaling server for Nextcloud Talk";
|
||
|
homepage = src.meta.homepage;
|
||
|
license = licenses.agpl3;
|
||
|
maintainers = with maintainers; [ aw ];
|
||
|
};
|
||
|
}
|