0d3355a439
Closes #230870. Thanks to @eliasnaur for the test case and for rasining awareness and to @veprbl for the work done on #111385. This takes a slightly different approach from those two PRs. The hook is set unconditionally. The stdenv bootstrap doesn’t really need CF at all, so setting the hook is harmless. This simplifies things.
7 lines
246 B
Bash
7 lines
246 B
Bash
usePureCoreFoundation() {
|
|
# Avoid overriding value set by the impure CF
|
|
if [ -z "${NIX_COREFOUNDATION_RPATH:-}" ]; then
|
|
export NIX_COREFOUNDATION_RPATH=@out@/Library/Frameworks
|
|
fi
|
|
}
|
|
addEnvHooks "$hostOffset" usePureCoreFoundation
|