Skip to content

Instantly share code, notes, and snippets.

@risicle
Created September 9, 2020 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save risicle/87b8002843f55d18406055e01a79ca25 to your computer and use it in GitHub Desktop.
Save risicle/87b8002843f55d18406055e01a79ca25 to your computer and use it in GitHub Desktop.
aws-vault 6.0.0 for nixpkgs 20.03
{ buildGoModule, lib, fetchFromGitHub }:
buildGoModule rec {
pname = "aws-vault";
version = "6.0.0";
src = fetchFromGitHub {
owner = "99designs";
repo = pname;
rev = "v${version}";
sha256 = "0ssm58ksk5jb28w1ipa57spzf6wixjy1m7flw61ls8k86cy7qb7c";
};
modSha256 = "0kbdj63s763qdwi4s0mc985ii9a51w5mibpf48mmqxj4h9hrsrby";
vendorSha256 = "0lxm7nkzf9j9id7m46gqn26prb1jfl34gy1fycr0578absdvsrjd";
doCheck = false;
subPackages = [ "." ];
# 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";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment