Merge pull request #4761 from emilazy/issue-4658-mark-impure-host-deps-as-optional

Mark `__impureHostDeps` paths as optional
This commit is contained in:
Eelco Dolstra
2021-05-03 16:13:36 +02:00
committed by GitHub
+3 -1
View File
@@ -581,7 +581,9 @@ void LocalDerivationGoal::startBuilder()
throw Error("derivation '%s' requested impure path '%s', but it was not in allowed-impure-host-deps",
worker.store.printStorePath(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__