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