{ stdenv, lib, buildGoPackage, fetchFromGitHub, easyjson }: buildGoPackage rec { pname = "nextcloud-spreed-signaling"; version = "0.4.0"; goPackagePath = "github.com/strukturag/nextcloud-spreed-signaling"; subPackages = [ "client" "server" "proxy" ]; src = fetchFromGitHub { owner = "strukturag"; repo = pname; rev = "v${version}"; sha256 = "sha256-njLU9/PLY24CW0rSoyzgtS2zsEeAfGuXexEfrGFP95E="; }; nativeBuildInputs = [ easyjson ]; goDeps = ./deps.nix; preBuild = '' easyjson -all go/src/github.com/strukturag/nextcloud-spreed-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 ]; }; }