rustPlatform.bindgenHook: use the same clang/libclang as rustc
This commit is contained in:
parent
3279887b97
commit
46ee37ca1d
|
@ -2,7 +2,6 @@
|
||||||
, callPackage
|
, callPackage
|
||||||
, cargo
|
, cargo
|
||||||
, cargo-nextest
|
, cargo-nextest
|
||||||
, clang
|
|
||||||
, lib
|
, lib
|
||||||
, makeSetupHook
|
, makeSetupHook
|
||||||
, maturin
|
, maturin
|
||||||
|
@ -124,8 +123,8 @@ in {
|
||||||
bindgenHook = callPackage ({}: makeSetupHook {
|
bindgenHook = callPackage ({}: makeSetupHook {
|
||||||
name = "rust-bindgen-hook";
|
name = "rust-bindgen-hook";
|
||||||
substitutions = {
|
substitutions = {
|
||||||
libclang = clang.cc.lib;
|
libclang = rustc.llvmPackages.clang.cc.lib;
|
||||||
inherit clang;
|
clang = rustc.llvmPackages.clang;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
./rust-bindgen-hook.sh) {};
|
./rust-bindgen-hook.sh) {};
|
||||||
|
|
Loading…
Reference in a new issue