9 rustPlatform.buildRustPackage rec {
10 pname = "cargo-spellcheck";
13 src = fetchFromGitHub {
17 hash = "sha256-PgV+sjCf4O24v0i9P7RJIcn28OWMUcPSwy+P5n8RwS4=";
20 cargoHash = "sha256-6dhM+FzuLtKtRp2mpE9nlpT+0PBcgGqvBa9vqs6Rs7s=";
23 substituteInPlace src/lib.rs \
24 --replace "#![deny(dead_code)]" "#![warn(dead_code)]"
27 nativeBuildInputs = [ rustPlatform.bindgenHook ];
29 buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
31 preCheck = "HOME=$(mktemp -d)";
34 "--skip checker::hunspell::tests::hunspell_binding_is_sane"
38 description = "Checks rust documentation for spelling and grammar mistakes";
39 mainProgram = "cargo-spellcheck";
40 homepage = "https://github.com/drahnr/cargo-spellcheck";
41 changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${version}/CHANGELOG.md";
42 license = with licenses; [ asl20 /* or */ mit ];
43 maintainers = with maintainers; [ newam matthiasbeyer ];