Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vault: 0.10.3 -> 0.10.4 #44898

Merged
merged 1 commit into from
Aug 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 6 additions & 8 deletions pkgs/tools/security/vault/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,26 @@ let
};
in stdenv.mkDerivation rec {
name = "vault-${version}";
version = "0.10.3";
version = "0.10.4";

src = fetchFromGitHub {
owner = "hashicorp";
repo = "vault";
rev = "v${version}";
sha256 = "16sndzbfciw4bccxm7sc83y2pma2bgsmc1kqyb2hp0jsdy4rl3k4";
sha256 = "1f11arvj7zp8wwkvv3nn7kyga0ci8psdif6djrnzwjksskdgdbx5";
};

nativeBuildInputs = [ go gox removeReferencesTo ];

buildPhase = ''
preBuild = ''
patchShebangs ./
substituteInPlace scripts/build.sh --replace 'git rev-parse HEAD' 'echo ${src.rev}'
sed -i s/'^GIT_DIRTY=.*'/'GIT_DIRTY="+NixOS"'/ scripts/build.sh

mkdir -p src/github.com/hashicorp
mkdir -p .git/hooks src/github.com/hashicorp
ln -s $(pwd) src/github.com/hashicorp/vault

mkdir -p .git/hooks

GOPATH=$(pwd) make
export GOPATH=$(pwd)
'';

installPhase = ''
Expand All @@ -47,6 +45,6 @@ in stdenv.mkDerivation rec {
description = "A tool for managing secrets";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.mpl20;
maintainers = with maintainers; [ rushmorem offline pradeepchhetri ];
maintainers = with maintainers; [ rushmorem lnl7 offline pradeepchhetri ];
};
}