Skip to content

Commit

Permalink
darwin-frameworks: use the system CF when frameworks are used
Browse files Browse the repository at this point in the history
This will get propagated down to other libraries loaded because
everything in nixpkgs references CF based on an rpath entry.
  • Loading branch information
LnL7 committed Jul 26, 2017
1 parent bf9279d commit 76d8586
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/os-specific/darwin/apple-sdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ let
propagatedBuildInputs = deps;

# don't use pure CF for dylibs that depend on frameworks
setupHook = ../../../build-support/setup-hooks/fix-darwin-frameworks.sh;
setupHook = ./framework-setup-hook.sh;

# allows building the symlink tree
__impureHostDeps = [ "/System/Library/Frameworks/${name}.framework" ];
Expand Down
5 changes: 5 additions & 0 deletions pkgs/os-specific/darwin/apple-sdk/framework-setup-hook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
useSystemCoreFoundationFramework () {
export NIX_COREFOUNDATION_RPATH=/System/Library/Frameworks
}

envHooks+=(useSystemCoreFoundationFramework)

0 comments on commit 76d8586

Please sign in to comment.