darwin.apple_sdk_11_0.callPackage: fix eval on non‐Darwin

This commit is contained in:
Emily 2024-10-16 20:28:49 +01:00
parent 0c82d4dcfc
commit af876a3d24

View File

@ -277,7 +277,9 @@ stdenvs
] mkStub;
callPackage = newScope (
lib.optionalAttrs stdenv.isDarwin stdenvs // { inherit (pkgs.darwin.apple_sdk_11_0) rustPlatform; }
lib.optionalAttrs stdenv.hostPlatform.isDarwin (
stdenvs // { inherit (pkgs.darwin.apple_sdk_11_0) rustPlatform; }
)
);
rustPlatform =