stdenv/darwin: fix SDK overlays for macOS SDK < 11

Quite impressive that this worked up until now.

Co-authored-by: Lily Foster <lily@lily.flowers>
This commit is contained in:
Emily 2024-11-07 17:56:32 +00:00
parent b3a0f2d3f1
commit ad625dd172

View File

@ -1273,7 +1273,8 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check
patch
;
"apple-sdk_${sdkMajorVersion}" = self.apple-sdk;
# TODO: Simplify when dropping support for macOS < 11.
"apple-sdk_${builtins.replaceStrings [ "." ] [ "_" ] sdkMajorVersion}" = self.apple-sdk;
darwin = super.darwin.overrideScope (
_: _: