about summary refs log tree commit diff
path: root/pkgs/tools/admin/aws-vault
diff options
context:
space:
mode:
authorMarica Odagaki <ento.entotto@gmail.com>2018-09-10 16:52:53 -0800
committerMarica Odagaki <ento.entotto@gmail.com>2018-09-10 16:52:53 -0800
commit962712524eba87ab3993e2095a8387b1b8ee7b72 (patch)
treee98a394fda22c9d6bf419b89357ea28437e428b0 /pkgs/tools/admin/aws-vault
parentf2836b36228800851237ec4a958da61ada355e30 (diff)
aws-vault: pass the app version to the linker
Otherwise, "aws-vault --version" just outputs "dev"
Diffstat (limited to 'pkgs/tools/admin/aws-vault')
-rw-r--r--pkgs/tools/admin/aws-vault/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/admin/aws-vault/default.nix b/pkgs/tools/admin/aws-vault/default.nix
index 6e0bf2d147a3a..71360f8030c59 100644
--- a/pkgs/tools/admin/aws-vault/default.nix
+++ b/pkgs/tools/admin/aws-vault/default.nix
@@ -13,6 +13,12 @@ buildGoPackage rec {
     sha256 = "0cwzvw1rcvg7y3m8dahr9r05s4i9apnfw5xhiaf0rlkdh3vy33wp";
   };
 
+  # set the version. see: aws-vault's Makefile
+  buildFlagsArray = ''
+    -ldflags=
+    -X main.Version=v${version}
+  '';
+
   meta = with lib; {
     description = "A vault for securely storing and accessing AWS credentials in development environments";
     homepage = "https://github.com/99designs/aws-vault";