From ad625dd17211a42d6e19513e61bdf1382bb89602 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 7 Nov 2024 17:56:32 +0000 Subject: [PATCH] stdenv/darwin: fix SDK overlays for macOS SDK < 11 Quite impressive that this worked up until now. Co-authored-by: Lily Foster --- pkgs/stdenv/darwin/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 35ad94c41633..6f8ffaec92f1 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -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 ( _: _: