textlint-rule-alex: repackage with buildNpmPackage

This commit is contained in:
natsukium 2024-05-16 22:40:55 +09:00
parent 95507da635
commit e633e33303
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
6 changed files with 38 additions and 555 deletions

View File

@ -0,0 +1,34 @@
{
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";
changelog = "https://github.com/textlint-rule/textlint-rule-alex/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}

View File

@ -0,0 +1 @@
A message for this sentence will pop up.

View File

@ -7,6 +7,7 @@
makeWrapper,
runCommand,
textlint,
textlint-rule-alex,
textlint-rule-max-comma,
textlint-rule-preset-ja-technical-writing,
}:
@ -95,6 +96,7 @@ buildNpmPackage rec {
tests = lib.mergeAttrsList (
map (package: package.tests) [
textlint-rule-alex
textlint-rule-max-comma
textlint-rule-preset-ja-technical-writing
]

View File

@ -137,6 +137,7 @@ mapAliases {
tedicross = throw "tedicross was removed because it was broken"; # added 2023-09-09
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-max-comma; # Added 2024-05-15
thelounge = pkgs.thelounge; # Added 2023-05-22
three = throw "three was removed because it was no longer needed"; # Added 2023-09-08

View File

@ -223,7 +223,6 @@
, "tern"
, "textlint-plugin-latex"
, "textlint-rule-abbr-within-parentheses"
, "textlint-rule-alex"
, "textlint-rule-common-misspellings"
, "textlint-rule-diacritics"
, "textlint-rule-en-max-word-count"

View File

@ -93220,560 +93220,6 @@ in
bypassCache = true;
reconstructLock = true;
};
textlint-rule-alex = nodeEnv.buildNodePackage {
name = "textlint-rule-alex";
packageName = "textlint-rule-alex";
version = "5.0.0";
src = fetchurl {
url = "https://registry.npmjs.org/textlint-rule-alex/-/textlint-rule-alex-5.0.0.tgz";
sha512 = "8HkUNY0HezGhzQbIMPvZBVdjKIkJ3Wqi29sSMM4Pc89Hdvcpn9Yr8YQoZi/mFn/njSKm/3AYtKoIMx4ziKDDqg==";
};
dependencies = [
sources."@babel/code-frame-7.23.5"
sources."@babel/helper-validator-identifier-7.22.20"
sources."@babel/highlight-7.23.4"
sources."@isaacs/cliui-8.0.2"
sources."@npmcli/config-6.4.1"
(sources."@npmcli/map-workspaces-3.0.4" // {
dependencies = [
sources."glob-10.3.10"
sources."minimatch-9.0.3"
];
})
sources."@npmcli/name-from-folder-2.0.0"
sources."@pnpm/config.env-replace-1.1.0"
(sources."@pnpm/network.ca-file-1.0.2" // {
dependencies = [
sources."graceful-fs-4.2.10"
];
})
sources."@pnpm/npm-conf-2.2.2"
sources."@sindresorhus/is-5.6.0"
sources."@szmarczak/http-timer-5.0.1"
sources."@textlint/ast-node-types-13.4.1"
sources."@types/acorn-4.0.6"
sources."@types/concat-stream-2.0.3"
sources."@types/debug-4.1.12"
sources."@types/estree-1.0.5"
sources."@types/estree-jsx-1.0.5"
sources."@types/hast-2.3.10"
sources."@types/http-cache-semantics-4.0.4"
sources."@types/is-empty-1.2.3"
sources."@types/mdast-3.0.15"
sources."@types/minimist-1.2.5"
sources."@types/ms-0.7.34"
sources."@types/nlcst-1.0.4"
sources."@types/node-18.19.25"
sources."@types/normalize-package-data-2.4.4"
sources."@types/supports-color-8.1.3"
sources."@types/unist-2.0.10"
sources."abbrev-2.0.0"
sources."acorn-8.11.3"
sources."acorn-jsx-5.3.2"
sources."alex-11.0.1"
(sources."ansi-align-3.0.1" // {
dependencies = [
sources."emoji-regex-8.0.0"
sources."string-width-4.2.3"
sources."strip-ansi-6.0.1"
];
})
sources."ansi-regex-5.0.1"
sources."ansi-styles-3.2.1"
sources."array-iterate-2.0.1"
sources."arrify-1.0.1"
sources."bail-2.0.2"
sources."balanced-match-1.0.2"
sources."boundary-2.0.0"
(sources."boxen-7.1.1" // {
dependencies = [
sources."chalk-5.3.0"
sources."type-fest-2.19.0"
];
})
sources."brace-expansion-2.0.1"
sources."bubble-stream-error-1.0.0"
sources."buffer-from-1.1.2"
sources."cacheable-lookup-7.0.0"
sources."cacheable-request-10.2.14"
sources."camelcase-7.0.1"
(sources."camelcase-keys-8.0.2" // {
dependencies = [
sources."type-fest-2.19.0"
];
})
sources."ccount-2.0.1"
sources."chalk-2.4.2"
sources."character-entities-2.0.2"
sources."character-entities-html4-2.1.0"
sources."character-entities-legacy-3.0.0"
sources."character-reference-invalid-2.0.1"
sources."ci-info-4.0.0"
sources."cli-boxes-3.0.0"
sources."color-convert-1.9.3"
sources."color-name-1.1.3"
sources."comma-separated-tokens-2.0.3"
(sources."concat-stream-2.0.0" // {
dependencies = [
sources."readable-stream-3.6.2"
sources."string_decoder-1.3.0"
];
})
(sources."config-chain-1.1.13" // {
dependencies = [
sources."ini-1.3.8"
];
})
sources."configstore-6.0.0"
sources."core-util-is-1.0.3"
sources."cross-spawn-7.0.3"
(sources."crypto-random-string-4.0.0" // {
dependencies = [
sources."type-fest-1.4.0"
];
})
sources."cuss-2.2.0"
sources."debug-4.3.4"
sources."decamelize-6.0.0"
(sources."decamelize-keys-1.1.1" // {
dependencies = [
sources."decamelize-1.2.0"
sources."map-obj-1.0.1"
];
})
sources."decode-named-character-reference-1.0.2"
(sources."decompress-response-6.0.0" // {
dependencies = [
sources."mimic-response-3.1.0"
];
})
sources."deep-extend-0.6.0"
sources."defer-to-connect-2.0.1"
sources."dequal-2.0.3"
sources."diff-5.2.0"
sources."dot-prop-6.0.1"
sources."duplexer-0.1.2"
sources."eastasianwidth-0.2.0"
sources."emoji-regex-9.2.2"
sources."end-of-stream-1.4.4"
sources."error-ex-1.3.2"
sources."escape-goat-4.0.0"
sources."escape-string-regexp-1.0.5"
sources."estree-util-is-identifier-name-2.1.0"
sources."estree-util-visit-1.2.1"
sources."event-stream-3.1.7"
sources."extend-3.0.2"
sources."fault-2.0.1"
sources."find-up-6.3.0"
sources."foreground-child-3.1.1"
sources."form-data-encoder-2.1.4"
sources."format-0.2.2"
sources."from-0.1.7"
sources."fs.realpath-1.0.0"
sources."function-bind-1.1.2"
sources."get-stream-6.0.1"
sources."git-diff-tree-1.1.0"
sources."git-spawned-stream-1.0.1"
sources."glob-8.1.0"
(sources."global-dirs-3.0.1" // {
dependencies = [
sources."ini-2.0.0"
];
})
sources."got-12.6.1"
sources."graceful-fs-4.2.11"
sources."hard-rejection-2.1.0"
sources."has-flag-3.0.0"
sources."has-yarn-3.0.0"
sources."hasown-2.0.2"
sources."hast-util-embedded-2.0.1"
sources."hast-util-from-parse5-7.1.2"
sources."hast-util-has-property-2.0.1"
sources."hast-util-is-body-ok-link-2.0.0"
sources."hast-util-is-element-2.1.3"
sources."hast-util-parse-selector-3.1.1"
sources."hast-util-phrasing-2.0.2"
sources."hast-util-to-nlcst-2.2.0"
sources."hast-util-to-string-2.0.0"
sources."hast-util-whitespace-2.0.1"
sources."hastscript-7.2.0"
sources."hosted-git-info-5.2.1"
sources."http-cache-semantics-4.1.1"
(sources."http2-wrapper-2.2.1" // {
dependencies = [
sources."quick-lru-5.1.1"
];
})
sources."ignore-5.3.1"
sources."import-lazy-4.0.0"
sources."import-meta-resolve-2.2.2"
sources."imurmurhash-0.1.4"
sources."indent-string-5.0.0"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
sources."ini-4.1.2"
sources."is-alphabetical-2.0.1"
sources."is-alphanumerical-2.0.1"
sources."is-arrayish-0.2.1"
sources."is-buffer-2.0.5"
(sources."is-ci-3.0.1" // {
dependencies = [
sources."ci-info-3.9.0"
];
})
sources."is-core-module-2.13.1"
sources."is-decimal-2.0.1"
sources."is-empty-1.2.0"
sources."is-fullwidth-code-point-3.0.0"
sources."is-hexadecimal-2.0.1"
sources."is-installed-globally-0.4.0"
sources."is-npm-6.0.0"
sources."is-obj-2.0.0"
sources."is-path-inside-3.0.3"
sources."is-plain-obj-1.1.0"
sources."is-typedarray-1.0.0"
sources."is-yarn-global-0.4.1"
sources."isarray-0.0.1"
sources."isexe-2.0.0"
sources."jackspeak-2.3.6"
sources."js-tokens-4.0.0"
sources."json-buffer-3.0.1"
sources."json-parse-even-better-errors-2.3.1"
sources."keyv-4.5.4"
sources."kind-of-6.0.3"
sources."kleur-4.1.5"
sources."latest-version-7.0.0"
sources."limit-spawn-0.0.3"
sources."lines-and-columns-1.2.4"
sources."load-plugin-5.1.0"
sources."locate-path-7.2.0"
sources."longest-streak-3.1.0"
sources."lowercase-keys-3.0.0"
sources."lru-cache-7.18.3"
sources."map-obj-4.3.0"
sources."map-stream-0.1.0"
sources."markdown-table-3.0.3"
sources."mdast-comment-marker-2.1.2"
(sources."mdast-util-find-and-replace-2.2.2" // {
dependencies = [
sources."escape-string-regexp-5.0.0"
];
})
sources."mdast-util-from-markdown-1.3.1"
sources."mdast-util-frontmatter-1.0.1"
sources."mdast-util-gfm-2.0.2"
sources."mdast-util-gfm-autolink-literal-1.0.3"
sources."mdast-util-gfm-footnote-1.0.2"
sources."mdast-util-gfm-strikethrough-1.0.3"
sources."mdast-util-gfm-table-1.0.7"
sources."mdast-util-gfm-task-list-item-1.0.2"
sources."mdast-util-mdx-2.0.1"
sources."mdast-util-mdx-expression-1.3.2"
sources."mdast-util-mdx-jsx-2.1.4"
sources."mdast-util-mdxjs-esm-1.3.1"
sources."mdast-util-phrasing-3.0.1"
sources."mdast-util-to-markdown-1.5.0"
sources."mdast-util-to-nlcst-5.2.1"
sources."mdast-util-to-string-3.2.0"
sources."meow-11.0.0"
sources."micromark-3.2.0"
sources."micromark-core-commonmark-1.1.0"
sources."micromark-extension-frontmatter-1.1.1"
sources."micromark-extension-gfm-2.0.3"
sources."micromark-extension-gfm-autolink-literal-1.0.5"
sources."micromark-extension-gfm-footnote-1.1.2"
sources."micromark-extension-gfm-strikethrough-1.0.7"
sources."micromark-extension-gfm-table-1.0.7"
sources."micromark-extension-gfm-tagfilter-1.0.2"
sources."micromark-extension-gfm-task-list-item-1.0.5"
sources."micromark-extension-mdx-expression-1.0.8"
sources."micromark-extension-mdx-jsx-1.0.5"
sources."micromark-extension-mdx-md-1.0.1"
sources."micromark-extension-mdxjs-1.0.1"
sources."micromark-extension-mdxjs-esm-1.0.5"
sources."micromark-factory-destination-1.1.0"
sources."micromark-factory-label-1.1.0"
sources."micromark-factory-mdx-expression-1.0.9"
sources."micromark-factory-space-1.1.0"
sources."micromark-factory-title-1.1.0"
sources."micromark-factory-whitespace-1.1.0"
sources."micromark-util-character-1.2.0"
sources."micromark-util-chunked-1.1.0"
sources."micromark-util-classify-character-1.1.0"
sources."micromark-util-combine-extensions-1.1.0"
sources."micromark-util-decode-numeric-character-reference-1.1.0"
sources."micromark-util-decode-string-1.1.0"
sources."micromark-util-encode-1.1.0"
sources."micromark-util-events-to-acorn-1.2.3"
sources."micromark-util-html-tag-name-1.2.0"
sources."micromark-util-normalize-identifier-1.1.0"
sources."micromark-util-resolve-all-1.1.0"
sources."micromark-util-sanitize-uri-1.2.0"
sources."micromark-util-subtokenize-1.1.0"
sources."micromark-util-symbol-1.1.0"
sources."micromark-util-types-1.1.0"
sources."mimic-response-4.0.0"
sources."min-indent-1.0.1"
sources."minimatch-5.1.6"
sources."minimist-1.2.8"
sources."minimist-options-4.1.0"
sources."minipass-7.0.4"
sources."mri-1.2.0"
sources."ms-2.1.2"
sources."nlcst-is-literal-2.1.1"
sources."nlcst-normalize-3.1.1"
sources."nlcst-search-3.1.1"
sources."nlcst-to-string-3.1.1"
sources."nopt-7.2.0"
sources."normalize-package-data-4.0.1"
sources."normalize-url-8.0.1"
sources."npm-normalize-package-bin-3.0.1"
sources."object-keys-0.4.0"
sources."once-1.4.0"
sources."p-cancelable-3.0.0"
sources."p-limit-4.0.0"
sources."p-locate-6.0.0"
sources."package-json-8.1.1"
(sources."parse-english-5.0.0" // {
dependencies = [
sources."nlcst-to-string-2.0.4"
];
})
sources."parse-entities-4.0.1"
sources."parse-json-5.2.0"
(sources."parse-latin-5.0.1" // {
dependencies = [
sources."unist-util-modify-children-3.1.1"
sources."unist-util-visit-children-2.0.2"
];
})
sources."parse5-6.0.1"
sources."path-exists-5.0.0"
sources."path-key-3.1.1"
(sources."path-scurry-1.10.1" // {
dependencies = [
sources."lru-cache-10.2.0"
];
})
sources."pause-stream-0.0.11"
sources."pluralize-8.0.0"
sources."proc-log-3.0.0"
sources."process-nextick-args-1.0.7"
sources."property-information-6.4.1"
sources."proto-list-1.2.4"
sources."pump-1.0.3"
sources."pump-chain-1.0.0"
sources."pupa-3.1.0"
sources."quick-lru-6.1.2"
sources."quotation-2.0.3"
(sources."rc-1.2.8" // {
dependencies = [
sources."ini-1.3.8"
];
})
(sources."read-package-json-fast-3.0.2" // {
dependencies = [
sources."json-parse-even-better-errors-3.0.1"
];
})
(sources."read-pkg-7.1.0" // {
dependencies = [
sources."hosted-git-info-4.1.0"
sources."lru-cache-6.0.0"
sources."normalize-package-data-3.0.3"
sources."type-fest-2.19.0"
];
})
(sources."read-pkg-up-9.1.0" // {
dependencies = [
sources."type-fest-2.19.0"
];
})
sources."readable-stream-1.0.34"
sources."redent-4.0.0"
sources."registry-auth-token-5.0.2"
sources."registry-url-6.0.1"
sources."rehype-parse-8.0.5"
sources."rehype-retext-3.0.2"
sources."remark-frontmatter-4.0.1"
sources."remark-gfm-3.0.1"
sources."remark-mdx-2.0.0"
sources."remark-message-control-7.1.1"
sources."remark-parse-10.0.2"
sources."remark-retext-5.0.1"
sources."resolve-alpn-1.2.1"
sources."responselike-3.0.0"
sources."retext-english-4.1.0"
sources."retext-equality-6.6.0"
sources."retext-profanities-7.2.2"
sources."sade-1.8.1"
sources."safe-buffer-5.2.1"
(sources."semver-7.6.0" // {
dependencies = [
sources."lru-cache-6.0.0"
];
})
sources."semver-diff-4.0.0"
sources."shebang-command-2.0.0"
sources."shebang-regex-3.0.0"
sources."signal-exit-4.1.0"
sources."sliced-1.0.1"
sources."space-separated-tokens-2.0.2"
(sources."spawn-to-readstream-0.1.3" // {
dependencies = [
sources."through2-0.4.2"
];
})
sources."spdx-correct-3.2.0"
sources."spdx-exceptions-2.5.0"
sources."spdx-expression-parse-3.0.1"
sources."spdx-license-ids-3.0.17"
sources."split-0.2.10"
(sources."split-transform-stream-0.1.1" // {
dependencies = [
sources."bubble-stream-error-0.0.1"
sources."through2-0.4.2"
];
})
sources."stream-combiner-0.0.4"
sources."string-width-5.1.2"
(sources."string-width-cjs-4.2.3" // {
dependencies = [
sources."emoji-regex-8.0.0"
sources."strip-ansi-6.0.1"
];
})
sources."string_decoder-0.10.31"
sources."stringify-entities-4.0.3"
(sources."strip-ansi-7.1.0" // {
dependencies = [
sources."ansi-regex-6.0.1"
];
})
sources."strip-ansi-cjs-6.0.1"
sources."strip-indent-4.0.0"
sources."strip-json-comments-2.0.1"
sources."structured-source-4.0.0"
sources."supports-color-5.5.0"
(sources."textlint-rule-helper-2.3.1" // {
dependencies = [
sources."unist-util-is-4.1.0"
sources."unist-util-visit-2.0.3"
sources."unist-util-visit-parents-3.1.1"
];
})
sources."through-2.3.8"
(sources."through2-2.0.0" // {
dependencies = [
sources."isarray-1.0.0"
sources."readable-stream-2.0.6"
sources."xtend-4.0.2"
];
})
sources."to-vfile-7.2.4"
sources."trim-newlines-4.1.1"
sources."trough-2.2.0"
sources."type-fest-3.13.1"
sources."typedarray-0.0.6"
sources."typedarray-to-buffer-3.1.5"
sources."undici-types-5.26.5"
sources."unherit-3.0.1"
(sources."unified-10.1.2" // {
dependencies = [
sources."is-plain-obj-4.1.0"
];
})
sources."unified-diff-4.0.1"
(sources."unified-engine-10.1.0" // {
dependencies = [
sources."is-plain-obj-4.1.0"
sources."lines-and-columns-2.0.4"
sources."parse-json-6.0.2"
];
})
(sources."unified-message-control-4.0.0" // {
dependencies = [
sources."unist-util-visit-3.1.0"
sources."unist-util-visit-parents-4.1.1"
];
})
sources."unique-string-3.0.0"
sources."unist-util-inspect-7.0.2"
sources."unist-util-is-5.2.1"
(sources."unist-util-modify-children-2.0.0" // {
dependencies = [
sources."array-iterate-1.1.4"
];
})
sources."unist-util-position-4.0.4"
sources."unist-util-position-from-estree-1.1.2"
sources."unist-util-remove-position-4.0.2"
sources."unist-util-stringify-position-3.0.3"
sources."unist-util-visit-4.1.2"
sources."unist-util-visit-children-1.1.4"
sources."unist-util-visit-parents-5.1.3"
(sources."update-notifier-6.0.2" // {
dependencies = [
sources."chalk-5.3.0"
];
})
sources."util-deprecate-1.0.2"
sources."uvu-0.5.6"
sources."validate-npm-package-license-3.0.4"
sources."vfile-5.3.7"
sources."vfile-find-up-6.1.0"
sources."vfile-location-4.1.0"
sources."vfile-message-3.1.4"
(sources."vfile-reporter-7.0.5" // {
dependencies = [
sources."supports-color-9.4.0"
];
})
sources."vfile-sort-3.0.1"
sources."vfile-statistics-2.0.1"
sources."walk-up-path-3.0.1"
sources."web-namespaces-2.0.1"
sources."which-2.0.2"
sources."widest-line-4.0.1"
(sources."wrap-ansi-8.1.0" // {
dependencies = [
sources."ansi-styles-6.2.1"
];
})
(sources."wrap-ansi-cjs-7.0.0" // {
dependencies = [
sources."ansi-styles-4.3.0"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."emoji-regex-8.0.0"
sources."string-width-4.2.3"
sources."strip-ansi-6.0.1"
];
})
sources."wrappy-1.0.2"
(sources."write-file-atomic-3.0.3" // {
dependencies = [
sources."signal-exit-3.0.7"
];
})
sources."xdg-basedir-5.1.0"
sources."xtend-2.1.2"
sources."yallist-4.0.0"
sources."yaml-2.4.1"
sources."yargs-parser-21.1.1"
sources."yocto-queue-1.0.0"
sources."zwitch-2.0.4"
];
buildInputs = globalBuildInputs;
meta = {
description = "textlint rule for alex";
homepage = "https://github.com/textlint-rule/textlint-rule-alex";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
textlint-rule-common-misspellings = nodeEnv.buildNodePackage {
name = "textlint-rule-common-misspellings";
packageName = "textlint-rule-common-misspellings";