502111d92a
Release notes: https://www.hashicorp.com/blog/vault-1-3/
35 lines
946 B
Nix
35 lines
946 B
Nix
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "vault";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "vault";
|
|
rev = "v${version}";
|
|
sha256 = "0ayvmqg4fj9cliwbl4pb12mailq7062j3f9v8arpv6x5r4hydlpy";
|
|
};
|
|
|
|
goPackagePath = "github.com/hashicorp/vault";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
buildFlagsArray = [
|
|
"-tags='vault'"
|
|
"-ldflags=\"-X github.com/hashicorp/vault/sdk/version.GitCommit='v${version}'\""
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $bin/share/bash-completion/completions
|
|
echo "complete -C $bin/bin/vault vault" > $bin/share/bash-completion/completions/vault
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.vaultproject.io;
|
|
description = "A tool for managing secrets";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ rushmorem lnl7 offline pradeepchhetri ];
|
|
};
|
|
}
|