rustPlatform.bindgenHook: use the same clang/libclang as rustc
This commit is contained in:
parent
3279887b97
commit
46ee37ca1d
1 changed files with 2 additions and 3 deletions
|
@ -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) {};
|
||||
|
|
Loading…
Reference in a new issue