mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
gitAndTools.git-bug: fix --version output
This commit is contained in:
parent
70c2e3633a
commit
29678b9b7d
@ -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 New Issue
Block a user