git.iko.soy/typeable/nixpkgs
on master help sign in
vault: export GOCACHE in the preBuild phase

TMPDIR, in `GOCACHE = "$TMPDIR";`, will not be intepreted when it's set outside of a phase.

commit7cb4e4b343cbffd64cc690d708864a418ac88f83 authorWael M. Nasreddine <wael.nasreddine@gmail.com> dateSun 10 Mar 2019, 14:05 (8 years ago) parent09435db
1 file changed+1−2
pkgs/tools/security/vault/default.nix+1−2
pkgs/tools/security/vault/default.nix+1−2
@@ -13,8 +13,6 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ go gox removeReferencesTo ];
1515
16− GOCACHE="$TMPDIR/go-cache";
17−
1816 preBuild = ''
1917 patchShebangs ./
2018 substituteInPlace scripts/build.sh --replace 'git rev-parse HEAD' 'echo ${src.rev}'
@@ -24,6 +22,7 @@ stdenv.mkDerivation rec {
2422 ln -s $(pwd) src/github.com/hashicorp/vault
2523
2624 export GOPATH=$(pwd)
25+ export GOCACHE="$TMPDIR/go-cache"
2726 '';
2827
2928 installPhase = ''