mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
cadvisor: export GOCACHE in the buildPhase
TMPDIR, in `GOCACHE = "$TMPDIR";`, will not be intepreted when it's set outside of a phase.
This commit is contained in:
parent
b39fc3a0bc
commit
09435db08a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user