159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
956 B
Nix
36 lines
956 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildNpmPackage,
|
|
textlint,
|
|
textlint-rule-stop-words,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "textlint-rule-stop-words";
|
|
version = "5.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sapegin";
|
|
repo = "textlint-rule-stop-words";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-e9jTbDULOs0DwtT9UZp7k5+RR5Ab/x/sizIvs1MrmZs=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-t9PPHFIiY4vw0ocw6nMuaeYuYWxbc1Pzo0R6bqIsHeI=";
|
|
|
|
dontNpmBuild = true;
|
|
|
|
passthru.tests = textlint.testPackages {
|
|
rule = textlint-rule-stop-words;
|
|
testFile = ./test.md;
|
|
};
|
|
|
|
meta = {
|
|
description = "Textlint rule to find filler words, buzzwords and clichés";
|
|
homepage = "https://github.com/sapegin/textlint-rule-stop-words";
|
|
changelog = "https://github.com/sapegin/textlint-rule-stop-words/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
};
|
|
}
|