summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-02-05 12:19:15 -0600
committerWill Dietz <w@wdtz.org>2018-02-05 12:19:15 -0600
commit9ee6f466064e00f6b4e4fd30fd063e6dba78c987 (patch)
tree10040db20feded0d57a85f435fd01d1efbf1dc23 /pkgs/applications/version-management
parent39f62c770b6e93e57240dbca64f5c298398ddaed (diff)
downloadnixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.tar
nixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.tar.gz
nixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.tar.bz2
nixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.tar.lz
nixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.tar.xz
nixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.tar.zst
nixlib-9ee6f466064e00f6b4e4fd30fd063e6dba78c987.zip
grv: pass in version, fix "grv -version" to at least include that
Currently:
$ grv -version
GRV - Git Repository Viewer Unknown (commit: Unknown, compiled: Unknown)

After:
$ grv -version
GRV - Git Repository Viewer 0.1.1 (commit: Unknown, compiled: Unknown)
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/git-and-tools/grv/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/grv/default.nix b/pkgs/applications/version-management/git-and-tools/grv/default.nix
index cbcf4cd9aeb7..d1c722c5446e 100644
--- a/pkgs/applications/version-management/git-and-tools/grv/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/grv/default.nix
@@ -19,6 +19,8 @@ buildGoPackage {
     sha256 = "0q9gvxfw48d4kjpb2jx7lg577vazjg0n961y6ija5saja5n16mk2";
   };
 
+  buildFlagsArray = [ "-ldflags=" "-X main.version=${version}" ];
+
   meta = with stdenv.lib; {
     description = " GRV is a terminal interface for viewing git repositories";
     homepage = https://github.com/rgburke/grv;