From 663c06e8cd7d44443b0495b13f2bb08e2cfab889 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 May 2012 22:14:36 -0400 Subject: [PATCH] Disable building in chroot for Nix's corepkgs The dependencies of the corepkgs are not necessarily in the chroot (or in the Nix store), so don't build them in a chroot. --- corepkgs/buildenv.nix | 3 +++ corepkgs/nar.nix | 3 +++ corepkgs/unpack-channel.nix | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/corepkgs/buildenv.nix b/corepkgs/buildenv.nix index 641231dd9..50c9923af 100644 --- a/corepkgs/buildenv.nix +++ b/corepkgs/buildenv.nix @@ -18,4 +18,7 @@ derivation { # Building user environments remotely just causes huge amounts of # network traffic, so don't do that. preferLocalBuild = true; + + # Don't build in a chroot because Nix's dependencies may not be there. + __noChroot = true; } diff --git a/corepkgs/nar.nix b/corepkgs/nar.nix index 5be8be10c..4747dc31d 100644 --- a/corepkgs/nar.nix +++ b/corepkgs/nar.nix @@ -28,4 +28,7 @@ derivation { builder = shell; args = [ "-e" builder ]; inherit storePath hashAlgo; + + # Don't build in a chroot because Nix's dependencies may not be there. + __noChroot = true; } diff --git a/corepkgs/unpack-channel.nix b/corepkgs/unpack-channel.nix index 0fc2b2f45..245430ab0 100644 --- a/corepkgs/unpack-channel.nix +++ b/corepkgs/unpack-channel.nix @@ -8,6 +8,10 @@ derivation { args = [ "-e" ./unpack-channel.sh ]; inherit name channelName src bzip2 tar tr; PATH = "${nixBinDir}:${coreutils}"; + # No point in doing this remotely. preferLocalBuild = true; + + # Don't build in a chroot because Nix's dependencies may not be there. + __noChroot = true; }