nixpkgs/pkgs/tools/admin/aws-vault/default.nix

29 lines
723 B
Nix
Raw Normal View History

2018-01-11 12:46:21 +00:00
{ buildGoPackage, lib, fetchFromGitHub }:
buildGoPackage rec {
pname = "aws-vault";
2019-04-10 09:10:44 +00:00
version = "4.5.1";
2018-01-11 12:46:21 +00:00
goPackagePath = "github.com/99designs/${pname}";
src = fetchFromGitHub {
owner = "99designs";
repo = pname;
rev = "v${version}";
2019-04-10 09:10:44 +00:00
sha256 = "0y64fx15p9ls829lif7c0jaxyclzpnr8l5cyw25q545878dzmcs5";
2018-01-11 12:46:21 +00:00
};
# set the version. see: aws-vault's Makefile
buildFlagsArray = ''
-ldflags=
-X main.Version=v${version}
'';
2018-01-11 12:46:21 +00:00
meta = with lib; {
2018-01-11 13:38:32 +00:00
description = "A vault for securely storing and accessing AWS credentials in development environments";
2018-01-11 12:46:21 +00:00
homepage = "https://github.com/99designs/aws-vault";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
2018-01-11 13:38:32 +00:00
};
2018-01-11 12:46:21 +00:00
}