From 962712524eba87ab3993e2095a8387b1b8ee7b72 Mon Sep 17 00:00:00 2001 From: Marica Odagaki Date: Mon, 10 Sep 2018 16:52:53 -0800 Subject: [PATCH] aws-vault: pass the app version to the linker Otherwise, "aws-vault --version" just outputs "dev" --- pkgs/tools/admin/aws-vault/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/admin/aws-vault/default.nix b/pkgs/tools/admin/aws-vault/default.nix index 6e0bf2d147a3..71360f8030c5 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";