replace "OS X" with "macOS"
This commit is contained in:
parent
92bcb61127
commit
fcb8d6a7a0
|
@ -57,7 +57,7 @@ int main (int argc, char * * argv)
|
||||||
settings.builders = argv[5];
|
settings.builders = argv[5];
|
||||||
|
|
||||||
/* It would be more appropriate to use $XDG_RUNTIME_DIR, since
|
/* It would be more appropriate to use $XDG_RUNTIME_DIR, since
|
||||||
that gets cleared on reboot, but it wouldn't work on OS X. */
|
that gets cleared on reboot, but it wouldn't work on macOS. */
|
||||||
currentLoad = settings.nixStateDir + "/current-load";
|
currentLoad = settings.nixStateDir + "/current-load";
|
||||||
|
|
||||||
std::shared_ptr<Store> sshStore;
|
std::shared_ptr<Store> sshStore;
|
||||||
|
|
|
@ -98,14 +98,14 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path, InodeHa
|
||||||
throw SysError(format("getting attributes of path ‘%1%’") % path);
|
throw SysError(format("getting attributes of path ‘%1%’") % path);
|
||||||
|
|
||||||
#if __APPLE__
|
#if __APPLE__
|
||||||
/* HFS/OS X has some undocumented security feature disabling hardlinking for
|
/* HFS/macOS has some undocumented security feature disabling hardlinking for
|
||||||
special files within .app dirs. *.app/Contents/PkgInfo and
|
special files within .app dirs. *.app/Contents/PkgInfo and
|
||||||
*.app/Contents/Resources/\*.lproj seem to be the only paths affected. See
|
*.app/Contents/Resources/\*.lproj seem to be the only paths affected. See
|
||||||
https://github.com/NixOS/nix/issues/1443 for more discussion. */
|
https://github.com/NixOS/nix/issues/1443 for more discussion. */
|
||||||
|
|
||||||
if (std::regex_search(path, std::regex("\\.app/Contents/PkgInfo$")) ||
|
if (std::regex_search(path, std::regex("\\.app/Contents/PkgInfo$")) ||
|
||||||
std::regex_search(path, std::regex("\\.app/Contents/Resources/.+\\.lproj$"))) {
|
std::regex_search(path, std::regex("\\.app/Contents/Resources/.+\\.lproj$"))) {
|
||||||
debug(format("‘%1%’ is not allowed to be linked in OS X") % path);
|
debug(format("‘%1%’ is not allowed to be linked in macOS") % path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue