8 rustPlatform.buildRustPackage rec {
9 pname = "cargo-spellcheck";
12 src = fetchFromGitHub {
16 hash = "sha256-NrtPV2bd9BuA1nnniIcth85gJQmFGy9LHdajqmW8j4Q=";
19 cargoHash = "sha256-mxx4G77ldPfVorNa1LGTcA0Idwmrcl8S/ze+UUoLHhI=";
21 nativeBuildInputs = [ rustPlatform.bindgenHook ];
23 buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
25 preCheck = "HOME=$(mktemp -d)";
28 "--skip checker::hunspell::tests::hunspell_binding_is_sane"
32 description = "Checks rust documentation for spelling and grammar mistakes";
33 mainProgram = "cargo-spellcheck";
34 homepage = "https://github.com/drahnr/cargo-spellcheck";
35 changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${version}/CHANGELOG.md";
36 license = with licenses; [ asl20 /* or */ mit ];
37 maintainers = with maintainers; [ newam matthiasbeyer ];