Skip to content

Commit

Permalink
vault: 1.4.3 -> 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Jul 29, 2020
1 parent d807152 commit 1c9e884
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkgs/tools/security/vault/default.nix
Expand Up @@ -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";
Expand All @@ -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
Expand Down

0 comments on commit 1c9e884

Please sign in to comment.