Merge pull request #215060 from winterqt/revert-207352

Revert "rustPlatform.bindgenHook: use the same clang/libclang as rustc"
This commit is contained in:
Weijia Wang 2023-02-07 06:32:20 +01:00 committed by GitHub
commit 6e30230a69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, callPackage
, cargo
, cargo-nextest
, clang
, lib
, makeSetupHook
, maturin
@ -126,8 +127,8 @@ in {
bindgenHook = callPackage ({}: makeSetupHook {
name = "rust-bindgen-hook";
substitutions = {
libclang = rustc.llvmPackages.clang.cc.lib;
clang = rustc.llvmPackages.clang;
libclang = clang.cc.lib;
inherit clang;
};
}
./rust-bindgen-hook.sh) {};