Support frameworks properly in sandbox

This commit is contained in:
Dan Peebles 2017-10-31 12:58:08 +01:00
parent d61c612768
commit 48a34be41c

View File

@ -136,10 +136,13 @@ let
# don't use pure CF for dylibs that depend on frameworks # don't use pure CF for dylibs that depend on frameworks
setupHook = ./framework-setup-hook.sh; setupHook = ./framework-setup-hook.sh;
# allows building the symlink tree # Not going to be more specific than this for now
__impureHostDeps = [ "/System/Library/Frameworks/${name}.framework" ]; __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
__propagatedImpureHostDeps = stdenv.lib.optional (name != "Kernel") "/System/Library/Frameworks/${name}.framework/${name}"; "/System/Library/Frameworks/CoreFoundation.framework"
"/System/Library/Frameworks/${name}.framework"
"/System/Library/Frameworks/${name}.framework/${name}"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Apple SDK framework ${name}"; description = "Apple SDK framework ${name}";