2021-09-19 01:57:22 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-11-05 02:37:55 +00:00
|
|
|
, stdenv
|
|
|
|
, Security
|
2021-09-19 01:57:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-spellcheck";
|
2023-08-09 17:24:33 +00:00
|
|
|
version = "0.13.0";
|
2021-09-19 01:57:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drahnr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-09 17:24:33 +00:00
|
|
|
sha256 = "sha256-XqT2l839fRDNj6zJB0vlVMmoRB2Lz61cN297PNIvFX8=";
|
2021-09-19 01:57:22 +00:00
|
|
|
};
|
|
|
|
|
2023-08-09 17:24:33 +00:00
|
|
|
cargoSha256 = "sha256-PzPQnexT1oeZ0FkTLyZiQJlMx+WDoSHD+J1JzoME6sA=";
|
2021-09-19 01:57:22 +00:00
|
|
|
|
2023-05-27 17:45:25 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2021-11-05 02:37:55 +00:00
|
|
|
|
2023-05-27 17:45:25 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2021-09-19 01:57:22 +00:00
|
|
|
|
2021-12-27 16:22:50 +00:00
|
|
|
preCheck = "HOME=$(mktemp -d)";
|
|
|
|
|
2021-09-19 01:57:22 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip checker::hunspell::tests::hunspell_binding_is_sane"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Checks rust documentation for spelling and grammar mistakes";
|
|
|
|
homepage = "https://github.com/drahnr/cargo-spellcheck";
|
2022-02-06 17:03:18 +00:00
|
|
|
changelog = "https://github.com/drahnr/cargo-spellcheck/blob/v${version}/CHANGELOG.md";
|
2021-09-19 01:57:22 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ newam ];
|
|
|
|
};
|
|
|
|
}
|