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.
This commit is contained in:
Stéphan Kochen 2023-01-22 13:04:57 +01:00
parent 0c3aaf3e6c
commit a0537d633f
2 changed files with 8 additions and 8 deletions

View File

@ -31,10 +31,7 @@ let
};
installPhase = ''
cd Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
mkdir $out
cp -r System usr $out/
mv Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk $out
'';
};
@ -49,10 +46,7 @@ let
};
installPhase = ''
cd Library/Developer/CommandLineTools
mkdir $out
cp -r Library usr $out/
mv Library/Developer/CommandLineTools $out
'';
};

View File

@ -3,6 +3,12 @@
"""
Generate a frameworks.nix for a macOS SDK.
You may point this tool at an Xcode bundled SDK, but more ideal is using the
SDK from Nixpkgs. For example:
SDK_PATH="$(nix-build --no-link -A darwin.apple_sdk_11_0.MacOSX-SDK)"
./gen-frameworks.py "$SDK_PATH" > ./new-frameworks.nix
"""
import json