mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Add resolve-system-dependencies.pl
This commit is contained in:
parent
15c7a79ed3
commit
ff6953cb03
5 changed files with 150 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue