textlint-rule-preset-ja-spacing: init at 2.4.3

This commit is contained in:
natsukium 2025-08-17 17:14:12 +09:00
parent d188a12ba0
commit 71b79f825d
No known key found for this signature in database
GPG Key ID: 49702B8EFC89D209
3 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,68 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
nodejs,
yarnBuildHook,
yarnConfigHook,
textlint,
textlint-rule-preset-ja-spacing,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "textlint-rule-preset-ja-spacing";
version = "2.4.3";
src = fetchFromGitHub {
owner = "textlint-ja";
repo = "textlint-rule-preset-ja-spacing";
tag = "v${finalAttrs.version}";
hash = "sha256-M27qhjIHMcKbuPAh523Pi5IB5BD0VWawh84kUyLcKvg=";
};
offlineCache = fetchYarnDeps {
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-AfbYACqYBvfsKzhryQabXQQmera19N/UH67sR5kbihM=";
};
nativeBuildInputs = [
nodejs
yarnBuildHook
yarnConfigHook
];
installPhase = ''
runHook preInstall
yarn install \
--force \
--frozen-lockfile \
--ignore-engines \
--ignore-platform \
--ignore-scripts \
--no-progress \
--non-interactive \
--offline \
--production=true
mkdir -p $out/lib
cp -r . $out/lib
runHook postInstall
'';
passthru.tests = textlint.testPackages {
rule = textlint-rule-preset-ja-spacing;
testFile = ./test.md;
};
meta = {
description = "textlint";
homepage = "https://github.com/textlint-ja/textlint-rule-preset-ja-spacing";
changelog = "https://github.com/textlint-ja/textlint-rule-preset-ja-spacing/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
platforms = textlint.meta.platforms;
};
})

View File

@ -0,0 +1 @@
Nix は純粋関数型パッケージマネージャーです。

View File

@ -18,6 +18,7 @@
textlint-rule-max-comma,
textlint-rule-no-start-duplicated-conjunction,
textlint-rule-period-in-list-item,
textlint-rule-preset-ja-spacing,
textlint-rule-preset-ja-technical-writing,
textlint-rule-prh,
textlint-rule-stop-words,
@ -124,6 +125,7 @@ buildNpmPackage rec {
textlint-rule-max-comma
textlint-rule-no-start-duplicated-conjunction
textlint-rule-period-in-list-item
textlint-rule-preset-ja-spacing
textlint-rule-preset-ja-technical-writing
textlint-rule-prh
textlint-rule-stop-words