diff --git a/pkgs/development/tools/rust/cargo-spellcheck/default.nix b/pkgs/development/tools/rust/cargo-spellcheck/default.nix index 7fb07e4b4482..5a9baa33403b 100644 --- a/pkgs/development/tools/rust/cargo-spellcheck/default.nix +++ b/pkgs/development/tools/rust/cargo-spellcheck/default.nix @@ -1,7 +1,6 @@ { lib , rustPlatform , fetchFromGitHub -, libclang , stdenv , Security }: @@ -19,9 +18,9 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-hYCDpSKi7HlqwdnMnfnKw46VpO+bhsV11kIu/4yMaBw="; - buildInputs = lib.optional stdenv.isDarwin Security; + nativeBuildInputs = [ rustPlatform.bindgenHook ]; - LIBCLANG_PATH = "${libclang.lib}/lib"; + buildInputs = lib.optional stdenv.isDarwin Security; preCheck = "HOME=$(mktemp -d)";