gitlab-shell: export GOCACHE in the installPhase
TMPDIR, in `GOCACHE = "$TMPDIR";`, will not be intepreted when it's set outside of a phase.
This commit is contained in:
parent
eee09b103c
commit
483d823ec4
|
@ -13,11 +13,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [ ruby bundler go ];
|
buildInputs = [ ruby bundler go ];
|
||||||
|
|
||||||
GOCACHE="$TMPDIR/go-cache";
|
|
||||||
|
|
||||||
patches = [ ./remove-hardcoded-locations.patch ];
|
patches = [ ./remove-hardcoded-locations.patch ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
export GOCACHE="$TMPDIR/go-cache"
|
||||||
|
|
||||||
ruby bin/compile
|
ruby bin/compile
|
||||||
mkdir -p $out/
|
mkdir -p $out/
|
||||||
cp -R . $out/
|
cp -R . $out/
|
||||||
|
|
Loading…
Reference in a new issue