2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildNpmPackage,
|
|
|
|
textlint,
|
|
|
|
textlint-rule-alex,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "textlint-rule-alex";
|
|
|
|
version = "5.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "textlint-rule";
|
|
|
|
repo = "textlint-rule-alex";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-1JoiUhiRXZWIyLAJXp5ZzFAa/NBCN79jYh5kMNbO0jI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
npmDepsHash = "sha256-ovDDiOZ415ubyDqbLNggzoVuqUWsRlG3zlhRW6xU3SQ=";
|
|
|
|
|
|
|
|
passthru.tests = textlint.testPackages {
|
|
|
|
rule = textlint-rule-alex;
|
|
|
|
testFile = ./test.md;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Textlint rule for alex";
|
|
|
|
homepage = "https://github.com/textlint-rule/textlint-rule-alex";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/textlint-rule/textlint-rule-alex/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
|
|
};
|
|
|
|
}
|