depot/third_party/nixpkgs/pkgs/by-name/te/textlint-rule-diacritics/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
976 B
Nix

{
lib,
fetchFromGitHub,
buildNpmPackage,
textlint,
textlint-rule-diacritics,
}:
buildNpmPackage rec {
pname = "textlint-rule-diacritics";
version = "1.0.0-unstable-2023-01-05";
src = fetchFromGitHub {
owner = "sapegin";
repo = "textlint-rule-diacritics";
rev = "07977d866aa6ce514bc6ed3a1087b2bb5869bfb4";
hash = "sha256-Zr+qWvgpLq3pzO4A7c+x4rTKkaSNO4t1gCiyJL3lkws=";
};
npmDepsHash = "sha256-bKA8aPVBYdzRPwCyFdEs3eWStJwswCZPVpsqGWwc42E=";
dontNpmBuild = true;
passthru.tests = textlint.testPackages {
rule = textlint-rule-diacritics;
testFile = ./test.md;
};
meta = {
description = "Textlint rule to check correct usage of diacritics";
homepage = "https://github.com/sapegin/textlint-rule-diacritics?tab=readme-ov-file";
changelog = "https://github.com/sapegin/textlint-rule-diacritics/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}