diff options
author | Dan Peebles <pumpkin@me.com> | 2017-10-31 12:58:08 +0100 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-11-08 22:06:52 -0500 |
commit | 48a34be41ce5c4e85b8e34281ae9af714d35baaf (patch) | |
tree | f11a89619904001c8a943cb4906fd7b92bd6a954 /pkgs/os-specific/darwin/apple-sdk | |
parent | d61c612768b857a1b0f1d1c11a19d2d6df9d9761 (diff) | |
download | nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.tar nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.tar.gz nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.tar.bz2 nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.tar.lz nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.tar.xz nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.tar.zst nixpkgs-48a34be41ce5c4e85b8e34281ae9af714d35baaf.zip |
Support frameworks properly in sandbox
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 957b610f3a2..9a6624104f4 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -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}"; |