Unverified Commit 331f83dc authored by figsoda's avatar figsoda Committed by GitHub
Browse files

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

cargo-spellcheck: migrate to bindgenHook
parents f5df4712 e21b39b6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
{ 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)";