cc1bfbd9a7
This will get propagated down to other libraries loaded because everything in nixpkgs references CF based on an rpath entry.
10 lines
349 B
Bash
10 lines
349 B
Bash
# This configures the stdenv to use /System/Library/Frameworks/CoreFoundation.framework
|
|
# instead of the nix version by including the system frameworks path
|
|
# as an rpath entry when creating binaries.
|
|
|
|
useSystemCoreFoundationFramework () {
|
|
export NIX_COREFOUNDATION_RPATH=/System/Library/Frameworks
|
|
}
|
|
|
|
envHooks+=(useSystemCoreFoundationFramework)
|