2018-01-11 12:46:21 +00:00
|
|
|
{ buildGoPackage, lib, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "aws-vault";
|
2018-09-11 00:52:14 +00:00
|
|
|
version = "4.3.0";
|
2018-01-11 12:46:21 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/99designs/${pname}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "99designs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2018-09-11 00:52:14 +00:00
|
|
|
sha256 = "0cwzvw1rcvg7y3m8dahr9r05s4i9apnfw5xhiaf0rlkdh3vy33wp";
|
2018-01-11 12:46:21 +00:00
|
|
|
};
|
|
|
|
|
2018-09-11 00:52:53 +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
|
|
|
}
|