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 31 }; 32 32 33 33 installPhase = '' 34 - cd Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk 35 - 36 - mkdir $out 37 - cp -r System usr $out/ 34 + mv Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk $out 38 35 ''; 39 36 }; 40 37 ··· 49 46 }; 50 47 51 48 installPhase = '' 52 - cd Library/Developer/CommandLineTools 53 - 54 - mkdir $out 55 - cp -r Library usr $out/ 49 + mv Library/Developer/CommandLineTools $out 56 50 ''; 57 51 }; 58 52
+6
pkgs/os-specific/darwin/gen-frameworks.py
··· 3 3 4 4 """ 5 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 6 12 """ 7 13 8 14 import json