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:
parent
912752b5b9
commit
0fb285678d
3 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -350,5 +350,7 @@ in rec {
|
|||
|
||||
frameworks = bareFrameworks // overrides bareFrameworks;
|
||||
|
||||
inherit darwin-stubs;
|
||||
|
||||
inherit sdk;
|
||||
}
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue