docker: export GOCACHE for all platforms

wip/yesman
Wael M. Nasreddine 5 years ago
parent 9b3da9ef64
commit eee09b103c
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F
  1. 5
      pkgs/applications/virtualization/docker/default.nix

@ -94,13 +94,14 @@ rec {
dontStrip = true;
buildPhase = (optionalString (stdenv.isLinux) ''
buildPhase = ''
export GOCACHE="$TMPDIR/go-cache"
'' + (optionalString (stdenv.isLinux) ''
# build engine
cd ./components/engine
export AUTO_GOPATH=1
export DOCKER_GITCOMMIT="${rev}"
export VERSION="${version}"
export GOCACHE="$TMPDIR/go-cache"
./hack/make.sh dynbinary
cd -
'') + ''

Loading…
Cancel
Save