mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
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:
parent
0c3aaf3e6c
commit
a0537d633f
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue