cargo-spellcheck: 0.14.0 -> 0.15.1 (#381043)

This commit is contained in:
Matthias Beyer
2025-02-11 08:43:53 +01:00
committed by GitHub
+16 -5
View File
@@ -2,28 +2,39 @@
lib,
rustPlatform,
fetchFromGitHub,
fetchpatch2,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-spellcheck";
version = "0.14.0";
version = "0.15.1";
src = fetchFromGitHub {
owner = "drahnr";
repo = pname;
rev = "v${version}";
hash = "sha256-NrtPV2bd9BuA1nnniIcth85gJQmFGy9LHdajqmW8j4Q=";
tag = "v${version}";
hash = "sha256-o4gvTF9Zb6bZ9443zos4bz37w3bXKumW2x425MM5/FY=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-1bOEOZ1byVm9apCqR9zgESsgA9Z9TdFSondwzwOPfWI=";
cargoHash = "sha256-wEcHMzeSj/JO/ZBPmQAiHaixtOTCT2+rTd1LDCY9wqc=";
patches = [
# fixes compilation of tests
# https://github.com/drahnr/cargo-spellcheck/pull/342
(fetchpatch2 {
name = "fix-test-compilation.patch";
url = "https://github.com/drahnr/cargo-spellcheck/pull/342/commits/aed8f3ca7a50fae38a5c6e0b974ed9773cd6c659.patch";
hash = "sha256-840t8uPg0EiiVppmMT38C1P16vps7F+g0o313tzghjE=";
})
];
nativeBuildInputs = [ rustPlatform.bindgenHook ];
preCheck = "HOME=$(mktemp -d)";
checkFlags = [
"--skip checker::hunspell::tests::hunspell_binding_is_sane"
"--skip=checker::hunspell::tests::hunspell_binding_is_sane"
];
meta = with lib; {