thanos: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:20:00 -05:00
parent c70cc016d7
commit 3ee3f9a535
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "thanos";
version = "0.11.0";
@ -12,6 +12,8 @@ buildGoModule rec {
modSha256 = "1pdypyyy352l6wy5lr94fv8j890lh863h8zg2hxchiymrs5pgq1c";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = "cmd/thanos";
buildFlagsArray = let t = "github.com/prometheus/common/version"; in ''

View file

@ -16206,7 +16206,9 @@ in
tailscale = callPackage ../servers/tailscale { };
thanos = callPackage ../servers/monitoring/thanos { };
thanos = callPackage ../servers/monitoring/thanos {
inherit (darwin.apple_sdk.frameworks) Security;
};
inherit (callPackages ../servers/http/tomcat { })
tomcat7