depot/third_party/nixpkgs/pkgs/by-name/te/textlint-rule-terminology/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
949 B
Nix

{
lib,
fetchFromGitHub,
buildNpmPackage,
textlint,
textlint-rule-terminology,
}:
buildNpmPackage rec {
pname = "textlint-rule-terminology";
version = "5.0.0";
src = fetchFromGitHub {
owner = "sapegin";
repo = "textlint-rule-terminology";
rev = "refs/tags/v${version}";
hash = "sha256-/NuKZSugizP4b2LFNqPrTvoXNE4D1sytU2B7T40ZASQ=";
};
npmDepsHash = "sha256-FQr7E6ZSJxj/ide+3JJwc27x15L1bAIAlPnMl8hdQ8w=";
dontNpmBuild = true;
passthru.tests = textlint.testPackages {
rule = textlint-rule-terminology;
testFile = ./test.md;
};
meta = {
description = "Textlint rule to check correct terms spelling";
homepage = "https://github.com/sapegin/textlint-rule-terminology";
changelog = "https://github.com/sapegin/textlint-rule-terminology/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}