textlint-rule-unexpanded-acronym: repackage with fetchYarnDeps
This commit is contained in:
parent
8fc1968cb2
commit
2aaa9011e1
79
pkgs/by-name/te/textlint-rule-unexpanded-acronym/package.nix
Normal file
79
pkgs/by-name/te/textlint-rule-unexpanded-acronym/package.nix
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
fixup-yarn-lock,
|
||||
nodejs,
|
||||
yarn,
|
||||
textlint,
|
||||
textlint-rule-unexpanded-acronym,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "textlint-rule-unexpanded-acronym";
|
||||
version = "1.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "textlint-rule";
|
||||
repo = "textlint-rule-unexpanded-acronym";
|
||||
rev = "refs/tags/${finalAttrs.version}";
|
||||
hash = "sha256-oUOofYfdENRQnwmBDADQgA1uGtRirqqGg8T+QA0LCXY=";
|
||||
};
|
||||
|
||||
offlineCache = fetchYarnDeps {
|
||||
yarnLock = "${finalAttrs.src}/yarn.lock";
|
||||
hash = "sha256-90ZONfn7CnrCsYGliF+c7Ss+SgVmaCYnaVdq3s1HdJU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
fixup-yarn-lock
|
||||
nodejs
|
||||
yarn
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
export HOME=$(mktemp -d)
|
||||
yarn config --offline set yarn-offline-mirror "$offlineCache"
|
||||
fixup-yarn-lock yarn.lock
|
||||
yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
|
||||
patchShebangs node_modules
|
||||
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
yarn --offline build
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
yarn --offline --production install
|
||||
rm -r test
|
||||
mkdir -p $out/lib/node_modules/textlint-rule-unexpanded-acronym
|
||||
cp -r . $out/lib/node_modules/textlint-rule-unexpanded-acronym/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = textlint.testPackages {
|
||||
rule = textlint-rule-unexpanded-acronym;
|
||||
testFile = ./test.md;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Textlint rule that check unexpanded acronym";
|
||||
homepage = "https://github.com/textlint-rule/textlint-rule-unexpanded-acronym";
|
||||
changelog = "https://github.com/textlint-rule/textlint-rule-unexpanded-acronym/releases/tag/${finalAttrs.src.rev}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ natsukium ];
|
||||
platforms = textlint.meta.platforms;
|
||||
};
|
||||
})
|
1
pkgs/by-name/te/textlint-rule-unexpanded-acronym/test.md
Normal file
1
pkgs/by-name/te/textlint-rule-unexpanded-acronym/test.md
Normal file
@ -0,0 +1 @@
|
||||
Passing an expression `expr` that evaluates to a store path to any built-in function which reads from the filesystem constitutes IFD.
|
@ -15,6 +15,7 @@
|
||||
textlint-rule-preset-ja-technical-writing,
|
||||
textlint-rule-stop-words,
|
||||
textlint-rule-terminology,
|
||||
textlint-rule-unexpanded-acronym,
|
||||
textlint-rule-write-good,
|
||||
}:
|
||||
|
||||
@ -110,6 +111,7 @@ buildNpmPackage rec {
|
||||
textlint-rule-preset-ja-technical-writing
|
||||
textlint-rule-stop-words
|
||||
textlint-rule-terminology
|
||||
textlint-rule-unexpanded-acronym
|
||||
textlint-rule-write-good
|
||||
]
|
||||
);
|
||||
|
@ -144,6 +144,7 @@ mapAliases {
|
||||
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-unexpanded-acronym; # 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
|
||||
|
@ -225,7 +225,6 @@
|
||||
, "textlint-rule-common-misspellings"
|
||||
, "textlint-rule-no-start-duplicated-conjunction"
|
||||
, "textlint-rule-period-in-list-item"
|
||||
, "textlint-rule-unexpanded-acronym"
|
||||
, "thelounge-plugin-closepms"
|
||||
, "thelounge-plugin-giphy"
|
||||
, "thelounge-plugin-shortcuts"
|
||||
|
87
pkgs/development/node-packages/node-packages.nix
generated
87
pkgs/development/node-packages/node-packages.nix
generated
@ -93290,93 +93290,6 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
textlint-rule-unexpanded-acronym = nodeEnv.buildNodePackage {
|
||||
name = "textlint-rule-unexpanded-acronym";
|
||||
packageName = "textlint-rule-unexpanded-acronym";
|
||||
version = "1.2.4";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/textlint-rule-unexpanded-acronym/-/textlint-rule-unexpanded-acronym-1.2.4.tgz";
|
||||
sha512 = "F1kV06CdonOM2awtXjCSRYUsRJfDfZIujQQo4zEMqNqD6UwpkapxpZOiwcwbeaQz00+17ljbJEoGqIe2XeiU+w==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."array-buffer-byte-length-1.0.1"
|
||||
sources."array-includes-3.1.7"
|
||||
sources."arraybuffer.prototype.slice-1.0.3"
|
||||
sources."available-typed-arrays-1.0.7"
|
||||
sources."call-bind-1.0.7"
|
||||
sources."data-view-buffer-1.0.1"
|
||||
sources."data-view-byte-length-1.0.1"
|
||||
sources."data-view-byte-offset-1.0.0"
|
||||
sources."define-data-property-1.1.4"
|
||||
sources."define-properties-1.2.1"
|
||||
sources."es-abstract-1.23.2"
|
||||
sources."es-define-property-1.0.0"
|
||||
sources."es-errors-1.3.0"
|
||||
sources."es-object-atoms-1.0.0"
|
||||
sources."es-set-tostringtag-2.0.3"
|
||||
sources."es-to-primitive-1.2.1"
|
||||
sources."for-each-0.3.3"
|
||||
sources."function-bind-1.1.2"
|
||||
sources."function.prototype.name-1.1.6"
|
||||
sources."functions-have-names-1.2.3"
|
||||
sources."get-intrinsic-1.2.4"
|
||||
sources."get-symbol-description-1.0.2"
|
||||
sources."globalthis-1.0.3"
|
||||
sources."gopd-1.0.1"
|
||||
sources."has-bigints-1.0.2"
|
||||
sources."has-property-descriptors-1.0.2"
|
||||
sources."has-proto-1.0.3"
|
||||
sources."has-symbols-1.0.3"
|
||||
sources."has-tostringtag-1.0.2"
|
||||
sources."hasown-2.0.2"
|
||||
sources."internal-slot-1.0.7"
|
||||
sources."is-array-buffer-3.0.4"
|
||||
sources."is-bigint-1.0.4"
|
||||
sources."is-boolean-object-1.1.2"
|
||||
sources."is-callable-1.2.7"
|
||||
sources."is-capitalized-1.0.0"
|
||||
sources."is-data-view-1.0.1"
|
||||
sources."is-date-object-1.0.5"
|
||||
sources."is-negative-zero-2.0.3"
|
||||
sources."is-number-object-1.0.7"
|
||||
sources."is-regex-1.1.4"
|
||||
sources."is-shared-array-buffer-1.0.3"
|
||||
sources."is-string-1.0.7"
|
||||
sources."is-symbol-1.0.4"
|
||||
sources."is-typed-array-1.1.13"
|
||||
sources."is-weakref-1.0.2"
|
||||
sources."isarray-2.0.5"
|
||||
sources."object-inspect-1.13.1"
|
||||
sources."object-keys-1.1.1"
|
||||
sources."object.assign-4.1.5"
|
||||
sources."possible-typed-array-names-1.0.0"
|
||||
sources."regexp.prototype.flags-1.5.2"
|
||||
sources."safe-array-concat-1.1.2"
|
||||
sources."safe-regex-test-1.0.3"
|
||||
sources."set-function-length-1.2.2"
|
||||
sources."set-function-name-2.0.2"
|
||||
sources."side-channel-1.0.6"
|
||||
sources."string.prototype.trim-1.2.9"
|
||||
sources."string.prototype.trimend-1.0.8"
|
||||
sources."string.prototype.trimstart-1.0.7"
|
||||
sources."typed-array-buffer-1.0.2"
|
||||
sources."typed-array-byte-length-1.0.1"
|
||||
sources."typed-array-byte-offset-1.0.2"
|
||||
sources."typed-array-length-1.0.5"
|
||||
sources."unbox-primitive-1.0.2"
|
||||
sources."which-boxed-primitive-1.0.2"
|
||||
sources."which-typed-array-1.1.15"
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "textlint rule that check unexpanded acronym word.";
|
||||
homepage = "https://github.com/textlint-rule/textlint-rule-unexpanded-acronym";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
thelounge-plugin-closepms = nodeEnv.buildNodePackage {
|
||||
name = "thelounge-plugin-closepms";
|
||||
packageName = "thelounge-plugin-closepms";
|
||||
|
Loading…
Reference in New Issue
Block a user