aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-06-01 10:01:14 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-06-01 10:01:14 +0000
commita443c7573b3d76a6db107e6de974205e605a2738 (patch)
treeb1ef6fbae700612745e16d6d213c5546b7d42fa7 /src/libstore/build.cc
parentb92a2e5cc2c4f6a14ceea75dfd3bcf5f64743b2f (diff)
* Hack to allow derivations to disable chroot builds by setting the
attribute "__noChroot = true" (requested by Rob).
Diffstat (limited to 'src/libstore/build.cc')
-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 e068ab0bd..a482ace00 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