about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-06-01T10·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-06-01T10·01+0000
commita443c7573b3d76a6db107e6de974205e605a2738 (patch)
treeb1ef6fbae700612745e16d6d213c5546b7d42fa7
parentb92a2e5cc2c4f6a14ceea75dfd3bcf5f64743b2f (diff)
* Hack to allow derivations to disable chroot builds by setting the
  attribute "__noChroot = true" (requested by Rob).

-rw-r--r--src/libstore/build.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e068ab0bdd94..a482ace00c22 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1545,6 +1545,9 @@ void DerivationGoal::startBuilder()
 
     if (fixedOutput) useChroot = false;
 
+    /* Hack to allow derivations to disable chroot builds. */
+    if (drv.env["__noChroot"] == "1") useChroot = false;
+
     if (useChroot) {
 #if CHROOT_ENABLED
         /* Create a temporary directory in which we set up the chroot