gitAndTools.git-bug: fix --version output
This commit is contained in:
parent
70c2e3633a
commit
29678b9b7d
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,13 @@ buildGoPackage rec {
|
|||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X ${goPackagePath}/commands.GitCommit=${rev}
|
||||
-X ${goPackagePath}/commands.GitLastTag=${version}
|
||||
-X ${goPackagePath}/commands.GitExactTag=${version}
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
cd go/src/${goPackagePath}
|
||||
install -D -m 0644 misc/bash_completion/git-bug "$bin/etc/bash_completion.d/git-bug"
|
||||
|
|
Loading…
Reference in a new issue