From 29678b9b7dee4d255b7a5c74bdebecabfeac903c Mon Sep 17 00:00:00 2001 From: royneary Date: Thu, 2 May 2019 00:47:30 +0200 Subject: [PATCH] gitAndTools.git-bug: fix --version output --- .../version-management/git-and-tools/git-bug/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/version-management/git-and-tools/git-bug/default.nix b/pkgs/applications/version-management/git-and-tools/git-bug/default.nix index 758f49bc64f6..fb2b5a317a96 100644 --- a/pkgs/applications/version-management/git-and-tools/git-bug/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-bug/default.nix @@ -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"