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
@@ -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}