1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-22 14:17:16 -04:00
nixpkgs/pkgs/tools/admin/aws-vault/default.nix

30 lines
755 B
Nix
Raw Normal View History

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