diff options
author | Nick Cao <nickcao@nichi.co> | 2022-12-23 09:08:09 +0800 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-01-08 15:22:04 +1000 |
commit | 46ee37ca1d9cd3bb18633b4104ef21d9035aac89 (patch) | |
tree | 64436f73dc51912dd28cd57940d0c5ea28ab4ba7 | |
parent | 3279887b97859099481cb658bdfd51cb70487554 (diff) |
rustPlatform.bindgenHook: use the same clang/libclang as rustc
-rw-r--r-- | pkgs/build-support/rust/hooks/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/build-support/rust/hooks/default.nix b/pkgs/build-support/rust/hooks/default.nix index b9bbac3719859..5c367b6575009 100644 --- a/pkgs/build-support/rust/hooks/default.nix +++ b/pkgs/build-support/rust/hooks/default.nix @@ -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) {}; |