diff options
author | Jude Taylor <me@jude.bio> | 2015-10-21T19·38-0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-10-21T19·38-0700 |
commit | ff6953cb031c0d2a625bbb2df985a7a3bb17bc46 (patch) | |
tree | 428b78785f83be8ee4d49bf7082d972b43f17789 /src/libstore/build.cc | |
parent | 15c7a79ed3723c24bbd33f84914d32142da1c2a9 (diff) |
Add resolve-system-dependencies.pl
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 10f926bf8da7..0dac1377de74 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -60,9 +60,11 @@ #if __APPLE__ #define SANDBOX_ENABLED 1 #define DEFAULT_ALLOWED_IMPURE_PREFIXES "/System/Library /usr /dev /bin/sh" + #define DARWIN_PREBUILD 1 #else #define SANDBOX_ENABLED 0 #define DEFAULT_ALLOWED_IMPURE_PREFIXES "/bin" "/usr/bin" + #define DARWIN_PREBUILD 0 #endif #if CHROOT_ENABLED @@ -2045,6 +2047,11 @@ void DerivationGoal::startBuilder() } } +#if DARWIN_PREBUILD + if (settings.preBuildHook == "") + settings.preBuildHook = settings.nixLibexecDir + "/nix/resolve-system-dependencies.pl"; +#endif + if (settings.preBuildHook != "") { printMsg(lvlChatty, format("executing pre-build hook ‘%1%’") % settings.preBuildHook); |