diff options
author | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2019-03-10 14:05:13 -0700 |
---|---|---|
committer | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2019-03-11 09:59:19 -0700 |
commit | 09435db08a7368fa7b9919a709c368b67947de59 (patch) | |
tree | 51f8f72798bef9f0489f5806e4af937ab266d15f /pkgs | |
parent | b39fc3a0bc221f3347055c5e59ca897e8df8db80 (diff) | |
download | nixlib-09435db08a7368fa7b9919a709c368b67947de59.tar nixlib-09435db08a7368fa7b9919a709c368b67947de59.tar.gz nixlib-09435db08a7368fa7b9919a709c368b67947de59.tar.bz2 nixlib-09435db08a7368fa7b9919a709c368b67947de59.tar.lz nixlib-09435db08a7368fa7b9919a709c368b67947de59.tar.xz nixlib-09435db08a7368fa7b9919a709c368b67947de59.tar.zst nixlib-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')
-rw-r--r-- | pkgs/servers/monitoring/cadvisor/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/servers/monitoring/cadvisor/default.nix b/pkgs/servers/monitoring/cadvisor/default.nix index 58ef9fa32b91..44f690bcf9d6 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 |