darwin.apple_sdk.darwin-stubs: add SDK-specific stubs

For the 11.0 SDK, base the stubs on the SDK for now.
This commit is contained in:
Randy Eckenrode 2024-03-15 23:24:35 -04:00
parent 912752b5b9
commit 0fb285678d
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9
3 changed files with 16 additions and 1 deletions

View file

@ -143,5 +143,16 @@ let
});
xcbuild = xcodebuild;
}));
darwin-stubs = stdenvNoCC.mkDerivation {
pname = "darwin-stubs";
inherit (MacOSX-SDK) version;
buildCommand = ''
mkdir -p "$out"
ln -s ${MacOSX-SDK}/System "$out/System"
ln -s ${MacOSX-SDK}/usr "$out/usr"
'';
};
};
in packages

View file

@ -350,5 +350,7 @@ in rec {
frameworks = bareFrameworks // overrides bareFrameworks;
inherit darwin-stubs;
inherit sdk;
}

View file

@ -199,7 +199,9 @@ impure-cmds // appleSourcePackages // chooseLibs // {
xcode_15 xcode_15_1
xcode;
CoreSymbolication = callPackage ../os-specific/darwin/CoreSymbolication { };
CoreSymbolication = callPackage ../os-specific/darwin/CoreSymbolication {
inherit (apple_sdk) darwin-stubs;
};
# TODO: Remove the CF hook if a solution to the crashes is not found.
CF =