pgmetrics: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:58:00 -05:00
parent 4bf3a0de2e
commit b11d54582d
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 = "pgmetrics";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0h375zk0ik06g0b5vmi00b1wn5q2c0r137f7qf6l8k8p886x41h6";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with stdenv.lib; {

View File

@ -5915,7 +5915,9 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
pgmetrics = callPackage ../tools/misc/pgmetrics { };
pgmetrics = callPackage ../tools/misc/pgmetrics {
inherit (darwin.apple_sdk.frameworks) Security;
};
pdsh = callPackage ../tools/networking/pdsh {
rsh = true; # enable internal rsh implementation