gitAndTools.git-bug: fix build on darwin

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

View File

@ -65,7 +65,9 @@ let
git-appraise = callPackage ./git-appraise {};
git-bug = callPackage ./git-bug { };
git-bug = callPackage ./git-bug {
inherit (darwin.apple_sdk.frameworks) Security;
};
# support for bugzilla
git-bz = callPackage ./git-bz { };

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "git-bug";
@ -15,6 +15,8 @@ buildGoModule rec {
modSha256 = "1cfn49cijiarzzczrpd28x1k7ib98xyzlvn3zghwk2ngfgiah3ld";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = ''
-ldflags=
-X ${goPackagePath}/commands.GitCommit=${rev}