mirror of
https://github.com/NixOS/nix
synced 2025-06-29 23:13:14 +02:00
move preBuildHook defaulting to globals.cc
This commit is contained in:
parent
2dc8e19a17
commit
76f3ba42fd
2 changed files with 5 additions and 7 deletions
|
@ -77,6 +77,11 @@ void Settings::processEnvironment()
|
|||
nixLibexecDir = canonPath(getEnv("NIX_LIBEXEC_DIR", NIX_LIBEXEC_DIR));
|
||||
nixBinDir = canonPath(getEnv("NIX_BIN_DIR", NIX_BIN_DIR));
|
||||
nixDaemonSocketFile = canonPath(nixStateDir + DEFAULT_SOCKET_PATH);
|
||||
|
||||
// should be set with the other config options, but depends on nixLibexecDir
|
||||
#ifdef __APPLE__
|
||||
preBuildHook = nixLibexecDir + "/nix/resolve-system-dependencies.pl";
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue