forked from mirrors/nixpkgs
aws-vault: pass the app version to the linker
Otherwise, "aws-vault --version" just outputs "dev"
This commit is contained in:
parent
f2836b3622
commit
962712524e
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ buildGoPackage rec {
|
||||||
sha256 = "0cwzvw1rcvg7y3m8dahr9r05s4i9apnfw5xhiaf0rlkdh3vy33wp";
|
sha256 = "0cwzvw1rcvg7y3m8dahr9r05s4i9apnfw5xhiaf0rlkdh3vy33wp";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# set the version. see: aws-vault's Makefile
|
||||||
|
buildFlagsArray = ''
|
||||||
|
-ldflags=
|
||||||
|
-X main.Version=v${version}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A vault for securely storing and accessing AWS credentials in development environments";
|
description = "A vault for securely storing and accessing AWS credentials in development environments";
|
||||||
homepage = "https://github.com/99designs/aws-vault";
|
homepage = "https://github.com/99designs/aws-vault";
|
||||||
|
|
Loading…
Add table
Reference in a new issue