2021-09-19 01:57:22 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-11-05 02:37:55 +00:00
|
|
|
, stdenv
|
|
|
|
, Security
|
2023-10-27 06:47:20 +00:00
|
|
|
, SystemConfiguration
|
2021-09-19 01:57:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-spellcheck";
|
2024-04-24 14:56:39 +00:00
|
|
|
version = "0.14.0";
|
2021-09-19 01:57:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drahnr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-24 14:56:39 +00:00
|
|
|
hash = "sha256-NrtPV2bd9BuA1nnniIcth85gJQmFGy9LHdajqmW8j4Q=";
|
2021-09-19 01:57:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-24 14:56:39 +00:00
|
|
|
cargoHash = "sha256-mxx4G77ldPfVorNa1LGTcA0Idwmrcl8S/ze+UUoLHhI=";
|
2024-04-20 17:53:00 +00:00
|
|
|
|
2023-05-27 17:45:25 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2021-11-05 02:37:55 +00:00
|
|
|
|
2023-10-27 06:47:20 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "cargo-spellcheck";
|
2021-09-19 01:57:22 +00:00
|
|
|
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 ];
|
2023-08-11 22:41:21 +00:00
|
|
|
maintainers = with maintainers; [ newam matthiasbeyer ];
|
2021-09-19 01:57:22 +00:00
|
|
|
};
|
|
|
|
}
|