From 57a0224a426f1623e4cc2559b1a0f3169f67c561 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 4 Jul 2017 21:48:59 +0200 Subject: [PATCH] nix: short TMPDIR for tests on Darwin This fixes test failures due to overly long nix-daemon socket paths. --- pkgs/tools/package-management/nix/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 45dfd52dba19..a90f38ccc095 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -79,6 +79,9 @@ let doInstallCheck = true; + # socket path becomes too long otherwise + preInstallCheck = lib.optional stdenv.isDarwin "export TMPDIR=/tmp"; + separateDebugInfo = stdenv.isLinux; crossAttrs = {