mirror of
https://github.com/NixOS/nix
synced 2025-07-08 15:13:55 +02:00
Mark __impureHostDeps
paths as optional
Starting in macOS 11, the on-disk dylib bundles are no longer available,
but nixpkgs needs to be able to keep compatibility with older versions
that require `/usr/lib/libSystem.B.dylib` in `__impureHostDeps`. Allow
it to keep backwards compatibility with these versions by marking these
dependencies as optional.
Fixes #4658.
(cherry picked from commit c4355a52fa
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
998fe9d645
commit
405d78eafc
1 changed files with 3 additions and 1 deletions
|
@ -2065,7 +2065,9 @@ void DerivationGoal::startBuilder()
|
||||||
if (!found)
|
if (!found)
|
||||||
throw Error(format("derivation '%1%' requested impure path '%2%', but it was not in allowed-impure-host-deps") % drvPath % i);
|
throw Error(format("derivation '%1%' requested impure path '%2%', but it was not in allowed-impure-host-deps") % drvPath % i);
|
||||||
|
|
||||||
dirsInChroot[i] = i;
|
/* Allow files in __impureHostDeps to be missing; e.g.
|
||||||
|
macOS 11+ has no /usr/lib/libSystem*.dylib */
|
||||||
|
dirsInChroot[i] = {i, true};
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __linux__
|
#if __linux__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue