darwin.copyfile: remove code for macOS < 11

This commit is contained in:
Emily 2024-10-05 19:09:03 +01:00
parent 7b3dd230da
commit c579058789

View File

@ -1,16 +1,12 @@
{
lib,
apple-sdk,
apple-sdk_10_13,
apple-sdk_11,
mkAppleDerivation,
stdenvNoCC,
}:
let
# The 10.12 SDK doesnt have the files needed in the same places or possibly at all.
# Just use the 11.x SDK to make things easier.
xnu = apple-sdk_11.sourceRelease "xnu";
xnu = apple-sdk.sourceRelease "xnu";
privateHeaders = stdenvNoCC.mkDerivation {
name = "copyfile-deps-private-headers";
@ -90,9 +86,5 @@ mkAppleDerivation {
env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include";
buildInputs = lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "10.13") [
(apple-sdk_10_13.override { enableBootstrap = true; })
];
meta.description = "Darwin file copying library";
}