2019-09-21 10:32:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
2016-06-04 22:13:30 +01:00
|
|
|
|
2019-09-21 10:32:00 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vault";
|
2020-01-22 23:18:18 +00:00
|
|
|
version = "1.3.2";
|
2016-06-04 22:13:30 +01:00
|
|
|
|
2016-06-06 11:56:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = "vault";
|
2016-09-23 18:34:51 +01:00
|
|
|
rev = "v${version}";
|
2020-01-22 23:18:18 +00:00
|
|
|
sha256 = "17zymmm1r4yxwazn2qx2l01i7g91rn40h7hzgwf0pr6pwmdxvkzg";
|
2016-09-23 18:34:51 +01:00
|
|
|
};
|
|
|
|
|
2019-09-21 10:32:00 +01:00
|
|
|
goPackagePath = "github.com/hashicorp/vault";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
2017-06-29 03:02:13 +01:00
|
|
|
|
2019-08-28 08:47:03 +01:00
|
|
|
buildFlagsArray = [
|
|
|
|
"-tags='vault'"
|
|
|
|
"-ldflags=\"-X github.com/hashicorp/vault/sdk/version.GitCommit='v${version}'\""
|
|
|
|
];
|
2017-07-02 01:39:55 +01:00
|
|
|
|
2019-08-28 08:47:03 +01:00
|
|
|
postInstall = ''
|
2019-09-21 10:32:00 +01:00
|
|
|
mkdir -p $bin/share/bash-completion/completions
|
|
|
|
echo "complete -C $bin/bin/vault vault" > $bin/share/bash-completion/completions/vault
|
2016-12-11 13:59:14 +00:00
|
|
|
'';
|
|
|
|
|
2016-09-23 18:34:51 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.vaultproject.io;
|
|
|
|
description = "A tool for managing secrets";
|
2017-02-16 19:47:30 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-09-23 18:34:51 +01:00
|
|
|
license = licenses.mpl20;
|
2018-08-11 13:47:54 +01:00
|
|
|
maintainers = with maintainers; [ rushmorem lnl7 offline pradeepchhetri ];
|
2016-06-04 22:13:30 +01:00
|
|
|
};
|
|
|
|
}
|