rustPlatform.bindgenHook: use the correct Libsystem on the 11.0 SDK

This commit is contained in:
Randy Eckenrode 2023-05-23 22:01:16 -04:00
parent 493c6d8505
commit 2c070763c7
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -104,6 +104,15 @@ let
rustPlatform = pkgs.makeRustPlatform {
inherit (pkgs.darwin.apple_sdk_11_0) stdenv;
inherit (pkgs) rustc cargo;
} // {
inherit (pkgs.callPackage ../../../build-support/rust/hooks {
inherit (pkgs.darwin.apple_sdk_11_0) stdenv;
inherit (pkgs) cargo rustc;
clang = pkgs.clang.override {
bintools = pkgs.clang.bintools.override { libc = packages.Libsystem; };
libc = packages.Libsystem;
};
}) bindgenHook;
};
callPackage = newScope (lib.optionalAttrs stdenv.isDarwin (stdenvs // rec {