mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 15:22:27 +00:00
* Hack to allow derivations to disable chroot builds by setting the
attribute "__noChroot = true" (requested by Rob).
This commit is contained in:
parent
b92a2e5cc2
commit
a443c7573b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user