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 , 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) {};