Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-spellcheck";
|
|
version = "0.15.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "drahnr";
|
|
repo = "cargo-spellcheck";
|
|
tag = "v${version}";
|
|
hash = "sha256-saRr1xEBefLoCgCxU/pyQOmmt/di+DOQHMoVc4LgRm0=";
|
|
};
|
|
|
|
cargoHash = "sha256-MGjyoHejsUd6HCoZVlw1NDG6TE9Anh05IeObHmcnwg0=";
|
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
|
|
|
preCheck = "HOME=$(mktemp -d)";
|
|
|
|
checkFlags = [
|
|
"--skip=checker::hunspell::tests::hunspell_binding_is_sane"
|
|
# requires dictionaries
|
|
"--skip=tests::e2e::issue_226"
|
|
];
|
|
|
|
meta = {
|
|
description = "Checks rust documentation for spelling and grammar mistakes";
|
|
mainProgram = "cargo-spellcheck";
|
|
homepage = "https://github.com/drahnr/cargo-spellcheck";
|
|
changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
newam
|
|
matthiasbeyer
|
|
];
|
|
};
|
|
}
|