aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index f650cd1b7..a97aa6d8b 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -35,6 +35,12 @@ extern string nixLibexecDir;
/* nixBinDir is the directory where the main programs are stored. */
extern string nixBinDir;
+/* nixChrootsDir is the directory where we create chroot environments
+ (when chroot builds are enabled). We don't put these under /tmp to
+ prevent "rm -rf /tmp" from recursing into /nix/store via the bind
+ mounts in the chroots. */
+extern string nixChrootsDir;
+
/* Misc. global flags. */