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

30 lines
755 B
Nix
Raw Normal View History

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