From 10481d25861f1c25b53cfbd8119199ef2e918f9f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 24 May 2020 00:48:30 +0100 Subject: chore(3p/nix): Remove some OS X specific defines This project will be dropping OS X support until the core is simplified. --- third_party/nix/src/libstore/optimise-store.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'third_party/nix/src/libstore/optimise-store.cc') diff --git a/third_party/nix/src/libstore/optimise-store.cc b/third_party/nix/src/libstore/optimise-store.cc index d7cf2bb744..caeff72363 100644 --- a/third_party/nix/src/libstore/optimise-store.cc +++ b/third_party/nix/src/libstore/optimise-store.cc @@ -105,18 +105,6 @@ void LocalStore::optimisePath_(OptimiseStats& stats, const Path& path, throw SysError(format("getting attributes of path '%1%'") % path); } -#if __APPLE__ - /* HFS/macOS has some undocumented security feature disabling hardlinking for - special files within .app dirs. *.app/Contents/PkgInfo and - *.app/Contents/Resources/\*.lproj seem to be the only paths affected. See - https://github.com/NixOS/nix/issues/1443 for more discussion. */ - - if (std::regex_search(path, std::regex("\\.app/Contents/.+$"))) { - debug(format("'%1%' is not allowed to be linked in macOS") % path); - return; - } -#endif - if (S_ISDIR(st.st_mode)) { Strings names = readDirectoryIgnoringInodes(path, inodeHash); for (auto& i : names) { -- cgit 1.4.1