2021-03-13 21:45:49 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, easyjson }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "nextcloud-spreed-signaling";
|
2021-08-08 23:11:11 +02:00
|
|
|
version = "0.3.0";
|
2021-03-13 21:45:49 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/strukturag/nextcloud-spreed-signaling";
|
|
|
|
|
|
|
|
subPackages = [
|
2021-08-08 23:11:11 +02:00
|
|
|
"client"
|
|
|
|
"server"
|
|
|
|
"proxy"
|
2021-03-13 21:45:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-08 23:11:11 +02:00
|
|
|
sha256 = "sha256-oKH9rpZa+CGnqgQD6Wa1KPi26ePrGZJzz9WXOauNs+U=";
|
2021-03-13 21:45:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ easyjson ];
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
preBuild = ''
|
2021-08-08 23:11:11 +02:00
|
|
|
easyjson -all go/src/github.com/strukturag/nextcloud-spreed-signaling/{api_signaling,api_backend,api_proxy,natsclient,room}.go
|
2021-03-13 21:45:49 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Standalone signaling server for Nextcloud Talk";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ aw ];
|
|
|
|
};
|
|
|
|
}
|