vault: 1.4.3 -> 1.5.0

This commit is contained in:
Mario Rodas 2020-07-29 04:20:00 -05:00
parent d807152c69
commit 1c9e8849e9
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -2,13 +2,13 @@
buildGoPackage rec {
pname = "vault";
version = "1.4.3";
version = "1.5.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "vault";
rev = "v${version}";
sha256 = "145zvkh3n503l7zkqkw8laqmqcwd0igd42s4xj0nw78xj2ppj9b8";
sha256 = "1bdhcsx7hwz4kb68jrrrzlbr7k744g0pym996dq1p5rvz05j3pqc";
};
goPackagePath = "github.com/hashicorp/vault";
@ -17,10 +17,7 @@ buildGoPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildFlagsArray = [
"-tags='vault'"
"-ldflags=\"-X github.com/hashicorp/vault/sdk/version.GitCommit='v${version}'\""
];
buildFlagsArray = [ "-tags=vault" "-ldflags=-s -w -X ${goPackagePath}/sdk/version.GitCommit=${src.rev}" ];
postInstall = ''
echo "complete -C $out/bin/vault vault" > vault.bash