3
0
Fork 0
forked from mirrors/nixpkgs

vault: 0.8.3 -> 0.9.0

This commit is contained in:
adisbladis 2017-12-04 16:13:07 +08:00
parent 6530159f17
commit f019707548
No known key found for this signature in database
GPG key ID: ED58F95069B004F5

View file

@ -9,13 +9,13 @@ let
};
in stdenv.mkDerivation rec {
name = "vault-${version}";
version = "0.8.3";
version = "0.9.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "vault";
rev = "v${version}";
sha256 = "1dcmqbcdkj42614am2invb6wf8v29z4sp4d354a4d83rwhyb0qly";
sha256 = "1c3jaajf3wpjczbncvdpyy5vaa62gb9287bj2zi2khvqzvii36b0";
};
nativeBuildInputs = [ go gox removeReferencesTo ];
@ -23,6 +23,7 @@ in stdenv.mkDerivation rec {
buildPhase = ''
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
ln -s $(pwd) src/github.com/hashicorp/vault