gotify-server: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:11:00 -05:00
parent 17eed5e575
commit 306bc84748
2 changed files with 6 additions and 3 deletions

View file

@ -1,11 +1,11 @@
{ stdenv
, buildGoPackage
, lib
, fetchFromGitHub
, buildGoModule
, packr
, sqlite
, callPackage
, Security
}:
buildGoModule rec {
@ -28,7 +28,8 @@ buildGoModule rec {
--replace 'Version = "unknown"' 'Version = "${version}"'
'';
buildInputs = [ sqlite ];
buildInputs = [ sqlite ]
++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ packr ];

View file

@ -10405,7 +10405,9 @@ in
gocd-server = callPackage ../development/tools/continuous-integration/gocd-server { };
gotify-server = callPackage ../servers/gotify { };
gotify-server = callPackage ../servers/gotify {
inherit (darwin.apple_sdk.frameworks) Security;
};
gotty = callPackage ../servers/gotty { };