Skip to content

Commit

Permalink
Support frameworks properly in sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
copumpkin committed Nov 9, 2017
1 parent d61c612 commit 48a34be
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkgs/os-specific/darwin/apple-sdk/default.nix
Expand Up @@ -136,10 +136,13 @@ let
# don't use pure CF for dylibs that depend on frameworks
setupHook = ./framework-setup-hook.sh;

# allows building the symlink tree
__impureHostDeps = [ "/System/Library/Frameworks/${name}.framework" ];

__propagatedImpureHostDeps = stdenv.lib.optional (name != "Kernel") "/System/Library/Frameworks/${name}.framework/${name}";
# Not going to be more specific than this for now
__propagatedImpureHostDeps = stdenv.lib.optionals (name != "Kernel") [
# The setup-hook ensures that everyone uses the impure CoreFoundation who uses these SDK frameworks, so let's expose it
"/System/Library/Frameworks/CoreFoundation.framework"
"/System/Library/Frameworks/${name}.framework"
"/System/Library/Frameworks/${name}.framework/${name}"
];

meta = with stdenv.lib; {
description = "Apple SDK framework ${name}";
Expand Down

0 comments on commit 48a34be

Please sign in to comment.