mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
rustPlatform.bindgenHook: use the same clang/libclang as rustc
This commit is contained in:
parent
3279887b97
commit
46ee37ca1d
@ -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 New Issue
Block a user