rustPlatform.bindgenHook: use the correct Libsystem on the 11.0 SDK
This commit is contained in:
parent
493c6d8505
commit
2c070763c7
|
@ -104,6 +104,15 @@ let
|
||||||
rustPlatform = pkgs.makeRustPlatform {
|
rustPlatform = pkgs.makeRustPlatform {
|
||||||
inherit (pkgs.darwin.apple_sdk_11_0) stdenv;
|
inherit (pkgs.darwin.apple_sdk_11_0) stdenv;
|
||||||
inherit (pkgs) rustc cargo;
|
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 {
|
callPackage = newScope (lib.optionalAttrs stdenv.isDarwin (stdenvs // rec {
|
||||||
|
|
Loading…
Reference in a new issue