textlint-rule-terminology: repackage with buildNpmPackage

This commit is contained in:
natsukium 2024-05-17 09:59:55 +09:00
parent 9587d0c8f9
commit 3109179f68
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
6 changed files with 40 additions and 31 deletions

View File

@ -0,0 +1,36 @@
{
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/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}

View File

@ -0,0 +1 @@
Javascript

View File

@ -13,6 +13,7 @@
textlint-rule-max-comma,
textlint-rule-preset-ja-technical-writing,
textlint-rule-stop-words,
textlint-rule-terminology,
textlint-rule-write-good,
}:
@ -106,6 +107,7 @@ buildNpmPackage rec {
textlint-rule-max-comma
textlint-rule-preset-ja-technical-writing
textlint-rule-stop-words
textlint-rule-terminology
textlint-rule-write-good
]
);

View File

@ -142,6 +142,7 @@ mapAliases {
inherit (pkgs) textlint-rule-diacritics; # Added 2024-05-16
inherit (pkgs) textlint-rule-max-comma; # Added 2024-05-15
inherit (pkgs) textlint-rule-stop-words; # Added 2024-05-17
inherit (pkgs) textlint-rule-terminology; # Added 2024-05-17
inherit (pkgs) textlint-rule-write-good; # Added 2024-05-16
thelounge = pkgs.thelounge; # Added 2023-05-22
three = throw "three was removed because it was no longer needed"; # Added 2023-09-08

View File

@ -226,7 +226,6 @@
, "textlint-rule-en-max-word-count"
, "textlint-rule-no-start-duplicated-conjunction"
, "textlint-rule-period-in-list-item"
, "textlint-rule-terminology"
, "textlint-rule-unexpanded-acronym"
, "thelounge-plugin-closepms"
, "thelounge-plugin-giphy"

View File

@ -93336,36 +93336,6 @@ in
bypassCache = true;
reconstructLock = true;
};
textlint-rule-terminology = nodeEnv.buildNodePackage {
name = "textlint-rule-terminology";
packageName = "textlint-rule-terminology";
version = "4.0.1";
src = fetchurl {
url = "https://registry.npmjs.org/textlint-rule-terminology/-/textlint-rule-terminology-4.0.1.tgz";
sha512 = "wKiVhc2B9HP2MFU4x7ZDx+oM5u43ETpKWTLHKvdhPRZ0+davi4M8mFmkZVovDIMO7igsGjixikcvFmnCMg3kmQ==";
};
dependencies = [
sources."@textlint/ast-node-types-13.4.1"
sources."@types/unist-2.0.10"
sources."boundary-2.0.0"
sources."lodash-4.17.21"
sources."strip-json-comments-3.1.1"
sources."structured-source-4.0.0"
sources."textlint-rule-helper-2.3.1"
sources."unist-util-is-4.1.0"
sources."unist-util-visit-2.0.3"
sources."unist-util-visit-parents-3.1.1"
];
buildInputs = globalBuildInputs;
meta = {
description = "TextLint rule to check correct terms spelling";
homepage = "https://github.com/sapegin/textlint-rule-terminology";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
textlint-rule-unexpanded-acronym = nodeEnv.buildNodePackage {
name = "textlint-rule-unexpanded-acronym";
packageName = "textlint-rule-unexpanded-acronym";