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
let
darwinMinVersion = "10.12";
darwinSdkVersion = "11.0";
in
(overrideCC stdenv (mkCc stdenv.cc)).override { (overrideCC stdenv (mkCc stdenv.cc)).override {
extraBuildInputs = [ pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation ]; extraBuildInputs = [ pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation ];
targetPlatform = stdenv.targetPlatform // { buildPlatform = stdenv.buildPlatform // { inherit darwinMinVersion darwinSdkVersion; };
darwinMinVersion = "10.12"; hostPlatform = stdenv.hostPlatform // { inherit darwinMinVersion darwinSdkVersion; };
darwinSdkVersion = "11.0"; targetPlatform = stdenv.targetPlatform // { inherit darwinMinVersion darwinSdkVersion; };
};
}; };
stdenvs = { stdenvs = {