Merge pull request #44177 from LnL7/nix-tempdir

nix: don't use /tmp for the tests on darwin
This commit is contained in:
Frederik Rietdijk 2018-07-29 09:12:41 +02:00 committed by GitHub
commit 2226b7de07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,9 @@ let
doInstallCheck = true; # not cross
# socket path becomes too long otherwise
preInstallCheck = lib.optional stdenv.isDarwin "export TMPDIR=/tmp";
preInstallCheck = lib.optional stdenv.isDarwin ''
export TMPDIR=$NIX_BUILD_TOP
'';
separateDebugInfo = stdenv.isLinux;