aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-11-21 15:57:06 -0800
committerJude Taylor <me@jude.bio>2015-11-21 15:57:06 -0800
commit279fa8f618ff22cc71bf902a65cc29c04af6e01f (patch)
treef422c3d1c167e78abc7a68b23f20521e376e1459 /src/libstore/build.cc
parente0bd114e099810b58385142f1347891e3074a1ec (diff)
reintroduce host deps in tandem with sandbox profiles
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 9614bb1c3..81ef701b0 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1927,7 +1927,7 @@ void DerivationGoal::startBuilder()
#if SANDBOX_ENABLED
additionalSandboxProfile = get(drv->env, "__sandboxProfile");
-#else
+#endif
string allowed = settings.get("allowed-impure-host-deps", string(DEFAULT_ALLOWED_IMPURE_PREFIXES));
PathSet allowedPaths = tokenizeString<StringSet>(allowed);
@@ -1953,7 +1953,6 @@ void DerivationGoal::startBuilder()
dirsInChroot[i] = i;
}
-#endif
#if CHROOT_ENABLED
/* Create a temporary directory in which we set up the chroot