Unverified Commit cf795c35 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #250460 from dotlambda/write-good-buildNpmPackage

write-good: use buildNpmPackage
parents 695d64bd dfc4c764
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ mapAliases {
  vue-cli = self."@vue/cli"; # added 2023-08-18
  vue-language-server = self.vls; # added 2023-08-20
  inherit (pkgs) web-ext; # added 2023-08-20
  inherit (pkgs) write-good; # added 2023-08-20
  inherit (pkgs) yo; # added 2023-08-20
  zx = pkgs.zx; # added 2023-08-01
}
+0 −1
Original line number Diff line number Diff line
@@ -365,7 +365,6 @@
, "@withgraphite/graphite-cli"
, "wrangler"
, "wring"
, "write-good"
, "@yaegassy/coc-nginx"
, "yaml-language-server"
, "yalc"
+0 −242
Original line number Diff line number Diff line
@@ -139774,248 +139774,6 @@ in
    bypassCache = true;
    reconstructLock = true;
  };
  write-good = nodeEnv.buildNodePackage {
    name = "write-good";
    packageName = "write-good";
    version = "1.0.8";
    src = fetchurl {
      url = "https://registry.npmjs.org/write-good/-/write-good-1.0.8.tgz";
      sha512 = "P1Ct7+DNrOcr2JAxDZ3Q5i5sx2LSveu7iLaoUL0A+YiG0GKf0l5+9j3rwMeyh6JeTL1+HfQV1rnwEvzhNIvpFw==";
    };
    dependencies = [
      sources."@aashutoshrathi/word-wrap-1.2.6"
      sources."@babel/runtime-7.22.10"
      sources."@eslint-community/eslint-utils-4.4.0"
      sources."@eslint-community/regexpp-4.6.2"
      (sources."@eslint/eslintrc-2.1.1" // {
        dependencies = [
          sources."debug-4.3.4"
          sources."ms-2.1.2"
        ];
      })
      sources."@eslint/js-8.46.0"
      (sources."@humanwhocodes/config-array-0.11.10" // {
        dependencies = [
          sources."debug-4.3.4"
          sources."ms-2.1.2"
        ];
      })
      sources."@humanwhocodes/module-importer-1.0.1"
      sources."@humanwhocodes/object-schema-1.2.1"
      sources."@nodelib/fs.scandir-2.1.5"
      sources."@nodelib/fs.stat-2.0.5"
      sources."@nodelib/fs.walk-1.2.8"
      sources."@types/json5-0.0.29"
      sources."acorn-8.10.0"
      sources."acorn-jsx-5.3.2"
      sources."adverb-where-0.2.5"
      sources."ajv-6.12.6"
      sources."ansi-regex-5.0.1"
      sources."ansi-styles-4.3.0"
      sources."argparse-2.0.1"
      sources."aria-query-5.3.0"
      sources."array-buffer-byte-length-1.0.0"
      sources."array-includes-3.1.6"
      sources."array.prototype.findlastindex-1.2.2"
      sources."array.prototype.flat-1.3.1"
      sources."array.prototype.flatmap-1.3.1"
      sources."array.prototype.tosorted-1.1.1"
      sources."arraybuffer.prototype.slice-1.0.1"
      sources."ast-types-flow-0.0.7"
      sources."available-typed-arrays-1.0.5"
      sources."axe-core-4.7.2"
      sources."axobject-query-3.2.1"
      sources."balanced-match-1.0.2"
      sources."brace-expansion-1.1.11"
      sources."call-bind-1.0.2"
      sources."callsites-3.1.0"
      sources."chalk-4.1.2"
      sources."color-convert-2.0.1"
      sources."color-name-1.1.4"
      sources."commander-2.20.3"
      sources."concat-map-0.0.1"
      sources."cross-spawn-7.0.3"
      sources."damerau-levenshtein-1.0.8"
      sources."debug-3.2.7"
      sources."deep-is-0.1.4"
      sources."define-properties-1.2.0"
      sources."dequal-2.0.3"
      sources."doctrine-2.1.0"
      sources."e-prime-0.10.4"
      sources."emoji-regex-9.2.2"
      sources."es-abstract-1.22.1"
      sources."es-set-tostringtag-2.0.1"
      sources."es-shim-unscopables-1.0.0"
      sources."es-to-primitive-1.2.1"
      sources."escape-string-regexp-4.0.0"
      (sources."eslint-8.46.0" // {
        dependencies = [
          sources."debug-4.3.4"
          sources."doctrine-3.0.0"
          sources."ms-2.1.2"
        ];
      })
      sources."eslint-import-resolver-node-0.3.9"
      sources."eslint-module-utils-2.8.0"
      sources."eslint-plugin-import-2.28.0"
      sources."eslint-plugin-jsx-a11y-6.7.1"
      (sources."eslint-plugin-react-7.33.1" // {
        dependencies = [
          sources."resolve-2.0.0-next.4"
        ];
      })
      sources."eslint-plugin-react-hooks-4.6.0"
      sources."eslint-scope-7.2.2"
      sources."eslint-visitor-keys-3.4.2"
      sources."espree-9.6.1"
      sources."esquery-1.5.0"
      sources."esrecurse-4.3.0"
      sources."estraverse-5.3.0"
      sources."esutils-2.0.3"
      sources."fast-deep-equal-3.1.3"
      sources."fast-json-stable-stringify-2.1.0"
      sources."fast-levenshtein-2.0.6"
      sources."fastq-1.15.0"
      sources."file-entry-cache-6.0.1"
      sources."find-up-5.0.0"
      sources."flat-cache-3.0.4"
      sources."flatted-3.2.7"
      sources."for-each-0.3.3"
      sources."fs.realpath-1.0.0"
      sources."function-bind-1.1.1"
      sources."function.prototype.name-1.1.5"
      sources."functions-have-names-1.2.3"
      sources."get-intrinsic-1.2.1"
      sources."get-symbol-description-1.0.0"
      sources."glob-7.2.3"
      sources."glob-parent-6.0.2"
      sources."globals-13.20.0"
      sources."globalthis-1.0.3"
      sources."gopd-1.0.1"
      sources."graphemer-1.4.0"
      sources."has-1.0.3"
      sources."has-bigints-1.0.2"
      sources."has-flag-4.0.0"
      sources."has-property-descriptors-1.0.0"
      sources."has-proto-1.0.1"
      sources."has-symbols-1.0.3"
      sources."has-tostringtag-1.0.0"
      sources."ignore-5.2.4"
      sources."import-fresh-3.3.0"
      sources."imurmurhash-0.1.4"
      sources."inflight-1.0.6"
      sources."inherits-2.0.4"
      sources."internal-slot-1.0.5"
      sources."is-array-buffer-3.0.2"
      sources."is-bigint-1.0.4"
      sources."is-boolean-object-1.1.2"
      sources."is-callable-1.2.7"
      sources."is-core-module-2.13.0"
      sources."is-date-object-1.0.5"
      sources."is-extglob-2.1.1"
      sources."is-glob-4.0.3"
      sources."is-negative-zero-2.0.2"
      sources."is-number-object-1.0.7"
      sources."is-path-inside-3.0.3"
      sources."is-regex-1.1.4"
      sources."is-shared-array-buffer-1.0.2"
      sources."is-string-1.0.7"
      sources."is-symbol-1.0.4"
      sources."is-typed-array-1.1.12"
      sources."is-weakref-1.0.2"
      sources."isarray-2.0.5"
      sources."isexe-2.0.0"
      sources."js-tokens-4.0.0"
      sources."js-yaml-4.1.0"
      sources."json-schema-traverse-0.4.1"
      sources."json-stable-stringify-without-jsonify-1.0.1"
      sources."json5-1.0.2"
      sources."jsx-ast-utils-3.3.5"
      sources."language-subtag-registry-0.3.22"
      sources."language-tags-1.0.5"
      sources."levn-0.4.1"
      sources."locate-path-6.0.0"
      sources."lodash.merge-4.6.2"
      sources."loose-envify-1.4.0"
      sources."minimatch-3.1.2"
      sources."minimist-1.2.8"
      sources."ms-2.1.3"
      sources."natural-compare-1.4.0"
      sources."no-cliches-0.3.4"
      sources."object-assign-4.1.1"
      sources."object-inspect-1.12.3"
      sources."object-keys-1.1.1"
      sources."object.assign-4.1.4"
      sources."object.entries-1.1.6"
      sources."object.fromentries-2.0.6"
      sources."object.groupby-1.0.0"
      sources."object.hasown-1.1.2"
      sources."object.values-1.1.6"
      sources."once-1.4.0"
      sources."optionator-0.9.3"
      sources."p-limit-3.1.0"
      sources."p-locate-5.0.0"
      sources."parent-module-1.0.1"
      sources."passive-voice-0.1.0"
      sources."path-exists-4.0.0"
      sources."path-is-absolute-1.0.1"
      sources."path-key-3.1.1"
      sources."path-parse-1.0.7"
      sources."prelude-ls-1.2.1"
      sources."prop-types-15.8.1"
      sources."punycode-2.3.0"
      sources."queue-microtask-1.2.3"
      sources."react-is-16.13.1"
      sources."regenerator-runtime-0.14.0"
      sources."regexp.prototype.flags-1.5.0"
      sources."resolve-1.22.4"
      sources."resolve-from-4.0.0"
      sources."reusify-1.0.4"
      sources."rimraf-3.0.2"
      sources."run-parallel-1.2.0"
      sources."safe-array-concat-1.0.0"
      sources."safe-regex-test-1.0.0"
      sources."semver-6.3.1"
      sources."shebang-command-2.0.0"
      sources."shebang-regex-3.0.0"
      sources."side-channel-1.0.4"
      sources."string.prototype.matchall-4.0.8"
      sources."string.prototype.trim-1.2.7"
      sources."string.prototype.trimend-1.0.6"
      sources."string.prototype.trimstart-1.0.6"
      sources."strip-ansi-6.0.1"
      sources."strip-bom-3.0.0"
      sources."strip-json-comments-3.1.1"
      sources."supports-color-7.2.0"
      sources."supports-preserve-symlinks-flag-1.0.0"
      sources."text-table-0.2.0"
      sources."too-wordy-0.3.4"
      sources."tsconfig-paths-3.14.2"
      sources."type-check-0.4.0"
      sources."type-fest-0.20.2"
      sources."typed-array-buffer-1.0.0"
      sources."typed-array-byte-length-1.0.0"
      sources."typed-array-byte-offset-1.0.0"
      sources."typed-array-length-1.0.4"
      sources."unbox-primitive-1.0.2"
      sources."uri-js-4.4.1"
      sources."weasel-words-0.1.1"
      sources."which-2.0.2"
      sources."which-boxed-primitive-1.0.2"
      sources."which-typed-array-1.1.11"
      sources."wrappy-1.0.2"
      sources."yocto-queue-0.1.0"
    ];
    buildInputs = globalBuildInputs;
    meta = {
      description = "Naive linter for English prose";
      homepage = "https://github.com/btford/write-good#readme";
      license = "MIT";
    };
    production = true;
    bypassCache = true;
    reconstructLock = true;
  };
  "@yaegassy/coc-nginx" = nodeEnv.buildNodePackage {
    name = "_at_yaegassy_slash_coc-nginx";
    packageName = "@yaegassy/coc-nginx";
+28 −0
Original line number Diff line number Diff line
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "write-good";
  version = "1.0.8";

  src = fetchFromGitHub {
    owner = "btford";
    repo = "write-good";
    rev = "v${version}";
    hash = "sha256-cq3cj2BwoQMKqo3iU2l+PR/2bJIFMSTRsDGQJ06GWXk=";
  };

  npmDepsHash = "sha256-0M9RzyeINmUPYcLy654iI+/ehElKrhIAibpiSqlXD2A=";

  dontNpmBuild = true;

  meta = {
    description = "Naive linter for English prose";
    homepage = "https://github.com/btford/write-good";
    license = lib.licenses.mit;
    mainProgram = "write-good";
    maintainers = with lib.maintainers; [ ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14454,6 +14454,8 @@ with pkgs;
  wpscan = callPackage ../tools/security/wpscan { };
  write-good = callPackage ../tools/text/write-good { };
  wsmancli = callPackage ../tools/system/wsmancli { };
  wstunnel = haskell.lib.compose.justStaticExecutables haskellPackages.wstunnel;