git.iko.soy/typeable/nixpkgs
on master help sign in
cadvisor: export GOCACHE in the buildPhase

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

commit09435db08a7368fa7b9919a709c368b67947de59 authorWael M. Nasreddine <wael.nasreddine@gmail.com> dateSun 10 Mar 2019, 14:05 (8 years ago) parentb39fc3a
1 file changed+1−2
pkgs/servers/monitoring/cadvisor/default.nix+1−2
pkgs/servers/monitoring/cadvisor/default.nix+1−2
@@ -13,9 +13,8 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ go ];
1515
16− GOCACHE="$TMPDIR/go-cache";
17−
1816 buildPhase = ''
17+ export GOCACHE="$TMPDIR/go-cache"
1918 mkdir -p Godeps/_workspace/src/github.com/google/
2019 ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
2120 GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor github.com/google/cadvisor