summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-10-28 16:02:40 +0000
committerGitHub <noreply@github.com>2018-10-28 16:02:40 +0000
commitee738264d150b1c359ddf7794eb843d6fc380cca (patch)
tree0315f3520e1f1c428f8c5b7a387d674baff37a05
parent426d35d0cd90feca9e451e0823689f71f63eb0de (diff)
parent9bbfc6f6e2c7d84136d344ca3182a47cb14cb32b (diff)
downloadnixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.tar
nixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.tar.gz
nixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.tar.bz2
nixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.tar.lz
nixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.tar.xz
nixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.tar.zst
nixlib-ee738264d150b1c359ddf7794eb843d6fc380cca.zip
Merge pull request #49346 from Mic92/gocache
buildGoPackage: re-enable GOCACHE
-rw-r--r--pkgs/development/go-modules/generic/default.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 3faa4c268ac0..0e092473bd52 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -103,6 +103,7 @@ go.stdenv.mkDerivation (
 
   '') + ''
     export GOPATH=$NIX_BUILD_TOP/go:$GOPATH
+    export GOCACHE=$TMPDIR/go-cache
 
     runHook postConfigure
   '';
@@ -193,9 +194,6 @@ go.stdenv.mkDerivation (
     find $bin/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
   '';
 
-  # Disable go cache, which is not reused in nix anyway
-  GOCACHE = "off";
-
   shellHook = ''
     d=$(mktemp -d "--suffix=-$name")
   '' + toString (map (dep: ''