Unverified Commit d47ef024 authored by natsukium's avatar natsukium
Browse files

textlint-rule-diacritics: repackage with buildNpmPackage

parent c28503fd
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+1 −0
Original line number Diff line number Diff line
creme brulee
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  runCommand,
  textlint,
  textlint-rule-alex,
  textlint-rule-diacritics,
  textlint-rule-max-comma,
  textlint-rule-preset-ja-technical-writing,
  textlint-rule-write-good,
@@ -98,6 +99,7 @@ buildNpmPackage rec {
    tests = lib.mergeAttrsList (
      map (package: package.tests) [
        textlint-rule-alex
        textlint-rule-diacritics
        textlint-rule-max-comma
        textlint-rule-preset-ja-technical-writing
        textlint-rule-write-good
+1 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@ mapAliases {
  inherit (pkgs) terser; # Added 2023-08-31
  inherit (pkgs) textlint; # Added 2024-05-13
  inherit (pkgs) textlint-rule-alex; # Added 2024-05-16
  inherit (pkgs) textlint-rule-diacritics; # Added 2024-05-16
  inherit (pkgs) textlint-rule-max-comma; # Added 2024-05-15
  inherit (pkgs) textlint-rule-write-good; # Added 2024-05-16
  thelounge = pkgs.thelounge; # Added 2023-05-22
+0 −1
Original line number Diff line number Diff line
@@ -224,7 +224,6 @@
, "textlint-plugin-latex"
, "textlint-rule-abbr-within-parentheses"
, "textlint-rule-common-misspellings"
, "textlint-rule-diacritics"
, "textlint-rule-en-max-word-count"
, "textlint-rule-no-start-duplicated-conjunction"
, "textlint-rule-period-in-list-item"
Loading