From 10d82898611572dd9be02c18a51089e14bcd7207 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Tue, 14 Aug 2012 18:52:41 +0200
Subject: [PATCH] release.nix: Build out of chroot.

* release.nix: Add `preConfigure' and `__noChroot' attributes.
---
 release.nix | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/release.nix b/release.nix
index 8d87d03bda6..28fde3b9566 100644
--- a/release.nix
+++ b/release.nix
@@ -46,9 +46,10 @@ let
         configureFlags =
           [ "--with-nixpkgs=${nixpkgs}" "--with-nix-prefix=${pkgs.nix}" ];
 
-        # XXX: The test suite cannot be run currently in the chroot, because
-        # it expects to have a running nix-worker to talk to.
-        doCheck = false;
+        # XXX: Since we need to talk to a running daemon, for the benefit of
+        # `nixpkgs-derivation*' & co., we need to escape the chroot.
+        preConfigure = "export NIX_REMOTE=daemon";
+        __noChroot = true;
       };
   };
 in
-- 
GitLab