apple_sdk_11_0: simplify SDK unpacking

The SDK was missing SDKSettings files. This is usually not a problem for
Nix builds, because we generate our own fake SDK structure when
necessary (in xcbuild), but not having these files blocks using the
upstream Apple SDK in tooling such as gen-frameworks.py.

+8 -8
+2 -8
pkgs/os-specific/darwin/apple-sdk-11.0/default.nix
··· 31 }; 32 33 installPhase = '' 34 - cd Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk 35 - 36 - mkdir $out 37 - cp -r System usr $out/ 38 ''; 39 }; 40 ··· 49 }; 50 51 installPhase = '' 52 - cd Library/Developer/CommandLineTools 53 - 54 - mkdir $out 55 - cp -r Library usr $out/ 56 ''; 57 }; 58
··· 31 }; 32 33 installPhase = '' 34 + mv Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk $out 35 ''; 36 }; 37 ··· 46 }; 47 48 installPhase = '' 49 + mv Library/Developer/CommandLineTools $out 50 ''; 51 }; 52
+6
pkgs/os-specific/darwin/gen-frameworks.py
··· 3 4 """ 5 Generate a frameworks.nix for a macOS SDK. 6 """ 7 8 import json
··· 3 4 """ 5 Generate a frameworks.nix for a macOS SDK. 6 + 7 + You may point this tool at an Xcode bundled SDK, but more ideal is using the 8 + SDK from Nixpkgs. For example: 9 + 10 + SDK_PATH="$(nix-build --no-link -A darwin.apple_sdk_11_0.MacOSX-SDK)" 11 + ./gen-frameworks.py "$SDK_PATH" > ./new-frameworks.nix 12 """ 13 14 import json