diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-06-01T10·01+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-06-01T10·01+0000 |
commit | a443c7573b3d76a6db107e6de974205e605a2738 (patch) | |
tree | b1ef6fbae700612745e16d6d213c5546b7d42fa7 /src/libstore/build.cc | |
parent | b92a2e5cc2c4f6a14ceea75dfd3bcf5f64743b2f (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.cc | 3 |
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 |