10 textlint-rule-en-max-word-count,
13 stdenv.mkDerivation (finalAttrs: {
14 pname = "textlint-rule-en-max-word-count";
17 src = fetchFromGitHub {
18 owner = "textlint-rule";
19 repo = "textlint-rule-en-max-word-count";
20 rev = "refs/tags/v${finalAttrs.version}";
21 hash = "sha256-ZZWN0PVHQBHcvJ53jDtD/6wLxBYmSHO7OXb5UQQAmyc=";
24 offlineCache = fetchYarnDeps {
25 yarnLock = "${finalAttrs.src}/yarn.lock";
26 hash = "sha256-3sEbvIfSaMz9pJalEKs7y05OVh+cKDg9jfLYmVyS53M=";
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-en-max-word-count
61 cp -r . $out/lib/node_modules/textlint-rule-en-max-word-count/
66 passthru.tests = textlint.testPackages {
67 rule = textlint-rule-en-max-word-count;
72 description = "Textlint rule that specify the maximum word count of a sentence";
73 homepage = "https://github.com/textlint-rule/textlint-rule-en-max-word-count";
74 changelog = "https://github.com/textlint-rule/textlint-rule-en-max-word-count/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;