darwin.apple_sdk_11_0.stdenv: set darwinSdkVersion on all platforms

This commit is contained in:
Weijia Wang 2024-01-23 07:44:29 +01:00
parent 9bf128cad3
commit c7c64a8c72

View file

@ -61,12 +61,15 @@ let
mkStdenv = stdenv: mkStdenv = stdenv:
if stdenv.isAarch64 then stdenv if stdenv.isAarch64 then stdenv
else else
(overrideCC stdenv (mkCc stdenv.cc)).override { let
extraBuildInputs = [ pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation ];
targetPlatform = stdenv.targetPlatform // {
darwinMinVersion = "10.12"; darwinMinVersion = "10.12";
darwinSdkVersion = "11.0"; darwinSdkVersion = "11.0";
}; in
(overrideCC stdenv (mkCc stdenv.cc)).override {
extraBuildInputs = [ pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation ];
buildPlatform = stdenv.buildPlatform // { inherit darwinMinVersion darwinSdkVersion; };
hostPlatform = stdenv.hostPlatform // { inherit darwinMinVersion darwinSdkVersion; };
targetPlatform = stdenv.targetPlatform // { inherit darwinMinVersion darwinSdkVersion; };
}; };
stdenvs = { stdenvs = {