gitAndTools.ghq: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:25:00 -05:00
parent 02d54a88b6
commit b149f2ee80
2 changed files with 6 additions and 2 deletions

View file

@ -34,7 +34,9 @@ let
inherit (darwin.apple_sdk.frameworks) Security;
};
ghq = callPackage ./ghq { };
ghq = callPackage ./ghq {
inherit (darwin.apple_sdk.frameworks) Security;
};
git = appendToName "minimal" gitBase;

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "ghq";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0hlbhky3c6zva9khn73n6xgq57k5p8anskxy3g2m0wzhr72cyc41";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = ''
-ldflags=
-X=main.Version=${version}