1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/tools/security/vault/default.nix

38 lines
966 B
Nix
Raw Normal View History

2020-04-26 04:16:57 +01:00
{ stdenv, fetchFromGitHub, buildGoPackage, installShellFiles }:
2016-06-04 22:13:30 +01:00
2019-09-21 10:32:00 +01:00
buildGoPackage rec {
pname = "vault";
2020-05-21 10:20:00 +01:00
version = "1.4.2";
2016-06-04 22:13:30 +01:00
src = fetchFromGitHub {
owner = "hashicorp";
repo = "vault";
2016-09-23 18:34:51 +01:00
rev = "v${version}";
2020-05-21 10:20:00 +01:00
sha256 = "0aschysngs6f50plqkqbnhgl6zryd0bpypr50zd45cgww7jvvqd4";
2016-09-23 18:34:51 +01:00
};
2019-09-21 10:32:00 +01:00
goPackagePath = "github.com/hashicorp/vault";
subPackages = [ "." ];
2020-04-26 04:16:57 +01:00
nativeBuildInputs = [ installShellFiles ];
buildFlagsArray = [
"-tags='vault'"
"-ldflags=\"-X github.com/hashicorp/vault/sdk/version.GitCommit='v${version}'\""
];
postInstall = ''
echo "complete -C $out/bin/vault vault" > vault.bash
2020-04-26 04:16:57 +01:00
installShellCompletion vault.bash
2016-12-11 13:59:14 +00:00
'';
2016-09-23 18:34:51 +01:00
meta = with stdenv.lib; {
2020-03-06 09:20:00 +00:00
homepage = "https://www.vaultproject.io/";
2016-09-23 18:34:51 +01:00
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
};
}