rustPlatform.bindgenHook: use the same clang/libclang as rustc

This commit is contained in:
Nick Cao 2022-12-23 09:08:09 +08:00 committed by zowoq
parent 3279887b97
commit 46ee37ca1d

View File

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