diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-02-24 01:47:10 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-02-24 01:57:16 +0000 |
commit | aafd5a63eaa3c37294ecbb8ab184fc85be1b7709 (patch) | |
tree | 2aa972b7a09261a22e3b1ac172a6ac1aab7ec2f2 /pkgs/development/go-modules | |
parent | e9fdcc9662557a57241150967ff5b9676d88d673 (diff) | |
download | nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.tar nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.tar.gz nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.tar.bz2 nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.tar.lz nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.tar.xz nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.tar.zst nixpkgs-aafd5a63eaa3c37294ecbb8ab184fc85be1b7709.zip |
buildGoPackage: disable go 1.10 cache
This disables annoying error messages that the go cache in /homeless-shelter cannot be created.
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 6de85495bee..a6d83fc770c 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -196,6 +196,9 @@ 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: '' |