nixpkgs/pkgs/development/tools/rust/cargo-spellcheck/default.nix

37 lines
857 B
Nix
Raw Normal View History

2021-09-19 03:57:22 +02:00
{ lib
, rustPlatform
, fetchFromGitHub
, libclang
2021-11-05 03:37:55 +01:00
, stdenv
, Security
2021-09-19 03:57:22 +02:00
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-spellcheck";
2021-10-13 16:08:46 +02:00
version = "0.8.14";
2021-09-19 03:57:22 +02:00
src = fetchFromGitHub {
owner = "drahnr";
repo = pname;
rev = "v${version}";
2021-10-13 16:08:46 +02:00
sha256 = "11r4gzcsbqlflam2rdixc451qw69c46mkf7g0slq6f127is25fgz";
2021-09-19 03:57:22 +02:00
};
2021-10-13 16:08:46 +02:00
cargoSha256 = "1p4iirblk6idvfhn8954v8lbxlzj0gbd8fv4wq03hfrdqisjqcsn";
2021-09-19 03:57:22 +02:00
2021-11-05 03:37:55 +01:00
buildInputs = lib.optional stdenv.isDarwin Security;
2021-09-19 03:57:22 +02:00
LIBCLANG_PATH = "${libclang.lib}/lib";
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";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ newam ];
};
}