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