10 textlint-rule-max-comma,
13 stdenv.mkDerivation (finalAttrs: {
14 pname = "textlint-rule-max-comma";
17 src = fetchFromGitHub {
18 owner = "textlint-rule";
19 repo = "textlint-rule-max-comma";
20 rev = "refs/tags/v${finalAttrs.version}";
21 hash = "sha256-Sf7ehhEOcy1HdgnIra8darkucF6RebQQV/NfJtft/DA=";
24 offlineCache = fetchYarnDeps {
25 yarnLock = "${finalAttrs.src}/yarn.lock";
26 hash = "sha256-jSsVQhvmc5mJ1gh6I5UaLvdz+HpaXI0fXFX0KCh01/c=";
38 export HOME=$(mktemp -d)
39 yarn config --offline set yarn-offline-mirror "$offlineCache"
40 fixup-yarn-lock yarn.lock
41 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
42 patchShebangs node_modules
58 yarn --offline --production install
60 mkdir -p $out/lib/node_modules/textlint-rule-max-comma
61 cp -r . $out/lib/node_modules/textlint-rule-max-comma/
66 passthru.tests = textlint.testPackages {
67 rule = textlint-rule-max-comma;
72 description = "Textlint rule is that limit maximum comma(,) count of sentence";
73 homepage = "https://github.com/textlint-rule/textlint-rule-max-comma";
74 changelog = "https://github.com/textlint-rule/textlint-rule-max-comma/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
75 license = lib.licenses.mit;
76 maintainers = with lib.maintainers; [ natsukium ];
77 platforms = textlint.meta.platforms;