2016-06-07 20:32:34 +00:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-04 21:13:30 +00:00
|
|
|
|
2016-06-07 20:32:34 +00:00
|
|
|
buildGoPackage rec {
|
2016-06-04 21:13:30 +00:00
|
|
|
name = "vault-${version}";
|
2016-09-23 17:34:51 +00:00
|
|
|
version = "0.6.1";
|
2016-06-04 21:13:30 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/hashicorp/vault";
|
|
|
|
|
2016-06-06 10:56:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = "vault";
|
2016-09-23 17:34:51 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "06xf2dpn0q398qb6wbh9j1wjl5smqq9nrrn2039g48haqm8853jx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/hashicorp/vault/version.GitCommit=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.vaultproject.io;
|
|
|
|
description = "A tool for managing secrets";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.rushmorem ];
|
2016-06-04 21:13:30 +00:00
|
|
|
};
|
|
|
|
}
|