diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2017-07-22 13:31:48 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2017-08-28 23:25:09 +0200 |
commit | cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3 (patch) | |
tree | ef01ca410ab045d525f1c17527bb45a3338a9c8c /pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh | |
parent | 92652b4d79cf09705c011dbf1c38bc871a4011c8 (diff) | |
download | nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.tar nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.tar.gz nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.tar.bz2 nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.tar.lz nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.tar.xz nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.tar.zst nixpkgs-cc1bfbd9a7f0fe7f7c4f0dec81990b5ce7d6cff3.zip |
darwin-frameworks: use the system CF when frameworks are used
This will get propagated down to other libraries loaded because everything in nixpkgs references CF based on an rpath entry.
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh b/pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh new file mode 100644 index 00000000000..9d96a4adbaa --- /dev/null +++ b/pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh @@ -0,0 +1,9 @@ +# 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) |