Skip to content

Commit 48a34be

Browse files
committedNov 9, 2017
Support frameworks properly in sandbox
1 parent d61c612 commit 48a34be

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
 

Diff for: ‎pkgs/os-specific/darwin/apple-sdk/default.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,13 @@ let
136136
# don't use pure CF for dylibs that depend on frameworks
137137
setupHook = ./framework-setup-hook.sh;
138138

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.