sensu-go-agent: fix build on darwin
This commit is contained in:
parent
78f00558e2
commit
428bb7d2b8
|
@ -1,4 +1,4 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
|
||||
|
||||
let
|
||||
generic = { subPackages, pname, postInstall ? "" }:
|
||||
|
@ -20,6 +20,8 @@ let
|
|||
|
||||
modSha256 = "02h4cav6ivzs3z0qakwxzf5lfy6hzax5c0i2icp0qymqc2789npw";
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
buildFlagsArray = let
|
||||
versionPkg = "github.com/sensu/sensu-go/version";
|
||||
in ''
|
||||
|
@ -28,11 +30,11 @@ let
|
|||
-X ${versionPkg}.BuildSHA=${shortRev}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://sensu.io";
|
||||
description = "Open source monitoring tool for ephemeral infrastructure & distributed applications";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ thefloweringash ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ thefloweringash ];
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
|
@ -16158,7 +16158,9 @@ in
|
|||
|
||||
sensu = callPackage ../servers/monitoring/sensu { };
|
||||
|
||||
inherit (callPackages ../servers/monitoring/sensu-go { })
|
||||
inherit (callPackages ../servers/monitoring/sensu-go {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
})
|
||||
sensu-go-agent
|
||||
sensu-go-backend
|
||||
sensu-go-cli;
|
||||
|
|
Loading…
Reference in New Issue