summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2019-03-10 14:05:13 -0700
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2019-03-11 09:59:19 -0700
commit09435db08a7368fa7b9919a709c368b67947de59 (patch)
tree51f8f72798bef9f0489f5806e4af937ab266d15f /pkgs/servers
parentb39fc3a0bc221f3347055c5e59ca897e8df8db80 (diff)
downloadnixpkgs-09435db08a7368fa7b9919a709c368b67947de59.tar
nixpkgs-09435db08a7368fa7b9919a709c368b67947de59.tar.gz
nixpkgs-09435db08a7368fa7b9919a709c368b67947de59.tar.bz2
nixpkgs-09435db08a7368fa7b9919a709c368b67947de59.tar.lz
nixpkgs-09435db08a7368fa7b9919a709c368b67947de59.tar.xz
nixpkgs-09435db08a7368fa7b9919a709c368b67947de59.tar.zst
nixpkgs-09435db08a7368fa7b9919a709c368b67947de59.zip
cadvisor: export GOCACHE in the buildPhase
TMPDIR, in `GOCACHE = "$TMPDIR";`, will not be intepreted  when it's set
outside of a phase.
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/monitoring/cadvisor/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/cadvisor/default.nix b/pkgs/servers/monitoring/cadvisor/default.nix
index 58ef9fa32b9..44f690bcf9d 100644
--- a/pkgs/servers/monitoring/cadvisor/default.nix
+++ b/pkgs/servers/monitoring/cadvisor/default.nix
@@ -13,9 +13,8 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ go ];
 
-  GOCACHE="$TMPDIR/go-cache";
-
   buildPhase = ''
+    export GOCACHE="$TMPDIR/go-cache"
     mkdir -p Godeps/_workspace/src/github.com/google/
     ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
     GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor github.com/google/cadvisor