Merge pull request #234471 from wegank/cargo-spellcheck-refactor

cargo-spellcheck: migrate to bindgenHook
This commit is contained in:
figsoda
2023-05-27 14:41:56 -04:00
committed by GitHub
@@ -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)";