write-good: use buildNpmPackage

+31 -243
+1
pkgs/development/node-packages/aliases.nix
··· 76 76 vscode-langservers-extracted = pkgs.vscode-langservers-extracted; # Added 2023-05-27 77 77 vue-cli = self."@vue/cli"; # added 2023-08-18 78 78 inherit (pkgs) web-ext; # added 2023-08-20 79 + inherit (pkgs) write-good; # added 2023-08-20 79 80 inherit (pkgs) yo; # added 2023-08-20 80 81 zx = pkgs.zx; # added 2023-08-01 81 82 }
-1
pkgs/development/node-packages/node-packages.json
··· 366 366 , "@withgraphite/graphite-cli" 367 367 , "wrangler" 368 368 , "wring" 369 - , "write-good" 370 369 , "@yaegassy/coc-nginx" 371 370 , "yaml-language-server" 372 371 , "yalc"
-242
pkgs/development/node-packages/node-packages.nix
··· 140782 140782 bypassCache = true; 140783 140783 reconstructLock = true; 140784 140784 }; 140785 - write-good = nodeEnv.buildNodePackage { 140786 - name = "write-good"; 140787 - packageName = "write-good"; 140788 - version = "1.0.8"; 140789 - src = fetchurl { 140790 - url = "https://registry.npmjs.org/write-good/-/write-good-1.0.8.tgz"; 140791 - sha512 = "P1Ct7+DNrOcr2JAxDZ3Q5i5sx2LSveu7iLaoUL0A+YiG0GKf0l5+9j3rwMeyh6JeTL1+HfQV1rnwEvzhNIvpFw=="; 140792 - }; 140793 - dependencies = [ 140794 - sources."@aashutoshrathi/word-wrap-1.2.6" 140795 - sources."@babel/runtime-7.22.10" 140796 - sources."@eslint-community/eslint-utils-4.4.0" 140797 - sources."@eslint-community/regexpp-4.6.2" 140798 - (sources."@eslint/eslintrc-2.1.1" // { 140799 - dependencies = [ 140800 - sources."debug-4.3.4" 140801 - sources."ms-2.1.2" 140802 - ]; 140803 - }) 140804 - sources."@eslint/js-8.46.0" 140805 - (sources."@humanwhocodes/config-array-0.11.10" // { 140806 - dependencies = [ 140807 - sources."debug-4.3.4" 140808 - sources."ms-2.1.2" 140809 - ]; 140810 - }) 140811 - sources."@humanwhocodes/module-importer-1.0.1" 140812 - sources."@humanwhocodes/object-schema-1.2.1" 140813 - sources."@nodelib/fs.scandir-2.1.5" 140814 - sources."@nodelib/fs.stat-2.0.5" 140815 - sources."@nodelib/fs.walk-1.2.8" 140816 - sources."@types/json5-0.0.29" 140817 - sources."acorn-8.10.0" 140818 - sources."acorn-jsx-5.3.2" 140819 - sources."adverb-where-0.2.5" 140820 - sources."ajv-6.12.6" 140821 - sources."ansi-regex-5.0.1" 140822 - sources."ansi-styles-4.3.0" 140823 - sources."argparse-2.0.1" 140824 - sources."aria-query-5.3.0" 140825 - sources."array-buffer-byte-length-1.0.0" 140826 - sources."array-includes-3.1.6" 140827 - sources."array.prototype.findlastindex-1.2.2" 140828 - sources."array.prototype.flat-1.3.1" 140829 - sources."array.prototype.flatmap-1.3.1" 140830 - sources."array.prototype.tosorted-1.1.1" 140831 - sources."arraybuffer.prototype.slice-1.0.1" 140832 - sources."ast-types-flow-0.0.7" 140833 - sources."available-typed-arrays-1.0.5" 140834 - sources."axe-core-4.7.2" 140835 - sources."axobject-query-3.2.1" 140836 - sources."balanced-match-1.0.2" 140837 - sources."brace-expansion-1.1.11" 140838 - sources."call-bind-1.0.2" 140839 - sources."callsites-3.1.0" 140840 - sources."chalk-4.1.2" 140841 - sources."color-convert-2.0.1" 140842 - sources."color-name-1.1.4" 140843 - sources."commander-2.20.3" 140844 - sources."concat-map-0.0.1" 140845 - sources."cross-spawn-7.0.3" 140846 - sources."damerau-levenshtein-1.0.8" 140847 - sources."debug-3.2.7" 140848 - sources."deep-is-0.1.4" 140849 - sources."define-properties-1.2.0" 140850 - sources."dequal-2.0.3" 140851 - sources."doctrine-2.1.0" 140852 - sources."e-prime-0.10.4" 140853 - sources."emoji-regex-9.2.2" 140854 - sources."es-abstract-1.22.1" 140855 - sources."es-set-tostringtag-2.0.1" 140856 - sources."es-shim-unscopables-1.0.0" 140857 - sources."es-to-primitive-1.2.1" 140858 - sources."escape-string-regexp-4.0.0" 140859 - (sources."eslint-8.46.0" // { 140860 - dependencies = [ 140861 - sources."debug-4.3.4" 140862 - sources."doctrine-3.0.0" 140863 - sources."ms-2.1.2" 140864 - ]; 140865 - }) 140866 - sources."eslint-import-resolver-node-0.3.9" 140867 - sources."eslint-module-utils-2.8.0" 140868 - sources."eslint-plugin-import-2.28.0" 140869 - sources."eslint-plugin-jsx-a11y-6.7.1" 140870 - (sources."eslint-plugin-react-7.33.1" // { 140871 - dependencies = [ 140872 - sources."resolve-2.0.0-next.4" 140873 - ]; 140874 - }) 140875 - sources."eslint-plugin-react-hooks-4.6.0" 140876 - sources."eslint-scope-7.2.2" 140877 - sources."eslint-visitor-keys-3.4.2" 140878 - sources."espree-9.6.1" 140879 - sources."esquery-1.5.0" 140880 - sources."esrecurse-4.3.0" 140881 - sources."estraverse-5.3.0" 140882 - sources."esutils-2.0.3" 140883 - sources."fast-deep-equal-3.1.3" 140884 - sources."fast-json-stable-stringify-2.1.0" 140885 - sources."fast-levenshtein-2.0.6" 140886 - sources."fastq-1.15.0" 140887 - sources."file-entry-cache-6.0.1" 140888 - sources."find-up-5.0.0" 140889 - sources."flat-cache-3.0.4" 140890 - sources."flatted-3.2.7" 140891 - sources."for-each-0.3.3" 140892 - sources."fs.realpath-1.0.0" 140893 - sources."function-bind-1.1.1" 140894 - sources."function.prototype.name-1.1.5" 140895 - sources."functions-have-names-1.2.3" 140896 - sources."get-intrinsic-1.2.1" 140897 - sources."get-symbol-description-1.0.0" 140898 - sources."glob-7.2.3" 140899 - sources."glob-parent-6.0.2" 140900 - sources."globals-13.20.0" 140901 - sources."globalthis-1.0.3" 140902 - sources."gopd-1.0.1" 140903 - sources."graphemer-1.4.0" 140904 - sources."has-1.0.3" 140905 - sources."has-bigints-1.0.2" 140906 - sources."has-flag-4.0.0" 140907 - sources."has-property-descriptors-1.0.0" 140908 - sources."has-proto-1.0.1" 140909 - sources."has-symbols-1.0.3" 140910 - sources."has-tostringtag-1.0.0" 140911 - sources."ignore-5.2.4" 140912 - sources."import-fresh-3.3.0" 140913 - sources."imurmurhash-0.1.4" 140914 - sources."inflight-1.0.6" 140915 - sources."inherits-2.0.4" 140916 - sources."internal-slot-1.0.5" 140917 - sources."is-array-buffer-3.0.2" 140918 - sources."is-bigint-1.0.4" 140919 - sources."is-boolean-object-1.1.2" 140920 - sources."is-callable-1.2.7" 140921 - sources."is-core-module-2.13.0" 140922 - sources."is-date-object-1.0.5" 140923 - sources."is-extglob-2.1.1" 140924 - sources."is-glob-4.0.3" 140925 - sources."is-negative-zero-2.0.2" 140926 - sources."is-number-object-1.0.7" 140927 - sources."is-path-inside-3.0.3" 140928 - sources."is-regex-1.1.4" 140929 - sources."is-shared-array-buffer-1.0.2" 140930 - sources."is-string-1.0.7" 140931 - sources."is-symbol-1.0.4" 140932 - sources."is-typed-array-1.1.12" 140933 - sources."is-weakref-1.0.2" 140934 - sources."isarray-2.0.5" 140935 - sources."isexe-2.0.0" 140936 - sources."js-tokens-4.0.0" 140937 - sources."js-yaml-4.1.0" 140938 - sources."json-schema-traverse-0.4.1" 140939 - sources."json-stable-stringify-without-jsonify-1.0.1" 140940 - sources."json5-1.0.2" 140941 - sources."jsx-ast-utils-3.3.5" 140942 - sources."language-subtag-registry-0.3.22" 140943 - sources."language-tags-1.0.5" 140944 - sources."levn-0.4.1" 140945 - sources."locate-path-6.0.0" 140946 - sources."lodash.merge-4.6.2" 140947 - sources."loose-envify-1.4.0" 140948 - sources."minimatch-3.1.2" 140949 - sources."minimist-1.2.8" 140950 - sources."ms-2.1.3" 140951 - sources."natural-compare-1.4.0" 140952 - sources."no-cliches-0.3.4" 140953 - sources."object-assign-4.1.1" 140954 - sources."object-inspect-1.12.3" 140955 - sources."object-keys-1.1.1" 140956 - sources."object.assign-4.1.4" 140957 - sources."object.entries-1.1.6" 140958 - sources."object.fromentries-2.0.6" 140959 - sources."object.groupby-1.0.0" 140960 - sources."object.hasown-1.1.2" 140961 - sources."object.values-1.1.6" 140962 - sources."once-1.4.0" 140963 - sources."optionator-0.9.3" 140964 - sources."p-limit-3.1.0" 140965 - sources."p-locate-5.0.0" 140966 - sources."parent-module-1.0.1" 140967 - sources."passive-voice-0.1.0" 140968 - sources."path-exists-4.0.0" 140969 - sources."path-is-absolute-1.0.1" 140970 - sources."path-key-3.1.1" 140971 - sources."path-parse-1.0.7" 140972 - sources."prelude-ls-1.2.1" 140973 - sources."prop-types-15.8.1" 140974 - sources."punycode-2.3.0" 140975 - sources."queue-microtask-1.2.3" 140976 - sources."react-is-16.13.1" 140977 - sources."regenerator-runtime-0.14.0" 140978 - sources."regexp.prototype.flags-1.5.0" 140979 - sources."resolve-1.22.4" 140980 - sources."resolve-from-4.0.0" 140981 - sources."reusify-1.0.4" 140982 - sources."rimraf-3.0.2" 140983 - sources."run-parallel-1.2.0" 140984 - sources."safe-array-concat-1.0.0" 140985 - sources."safe-regex-test-1.0.0" 140986 - sources."semver-6.3.1" 140987 - sources."shebang-command-2.0.0" 140988 - sources."shebang-regex-3.0.0" 140989 - sources."side-channel-1.0.4" 140990 - sources."string.prototype.matchall-4.0.8" 140991 - sources."string.prototype.trim-1.2.7" 140992 - sources."string.prototype.trimend-1.0.6" 140993 - sources."string.prototype.trimstart-1.0.6" 140994 - sources."strip-ansi-6.0.1" 140995 - sources."strip-bom-3.0.0" 140996 - sources."strip-json-comments-3.1.1" 140997 - sources."supports-color-7.2.0" 140998 - sources."supports-preserve-symlinks-flag-1.0.0" 140999 - sources."text-table-0.2.0" 141000 - sources."too-wordy-0.3.4" 141001 - sources."tsconfig-paths-3.14.2" 141002 - sources."type-check-0.4.0" 141003 - sources."type-fest-0.20.2" 141004 - sources."typed-array-buffer-1.0.0" 141005 - sources."typed-array-byte-length-1.0.0" 141006 - sources."typed-array-byte-offset-1.0.0" 141007 - sources."typed-array-length-1.0.4" 141008 - sources."unbox-primitive-1.0.2" 141009 - sources."uri-js-4.4.1" 141010 - sources."weasel-words-0.1.1" 141011 - sources."which-2.0.2" 141012 - sources."which-boxed-primitive-1.0.2" 141013 - sources."which-typed-array-1.1.11" 141014 - sources."wrappy-1.0.2" 141015 - sources."yocto-queue-0.1.0" 141016 - ]; 141017 - buildInputs = globalBuildInputs; 141018 - meta = { 141019 - description = "Naive linter for English prose"; 141020 - homepage = "https://github.com/btford/write-good#readme"; 141021 - license = "MIT"; 141022 - }; 141023 - production = true; 141024 - bypassCache = true; 141025 - reconstructLock = true; 141026 - }; 141027 140785 "@yaegassy/coc-nginx" = nodeEnv.buildNodePackage { 141028 140786 name = "_at_yaegassy_slash_coc-nginx"; 141029 140787 packageName = "@yaegassy/coc-nginx";
+28
pkgs/tools/text/write-good/default.nix
··· 1 + { lib 2 + , buildNpmPackage 3 + , fetchFromGitHub 4 + }: 5 + 6 + buildNpmPackage rec { 7 + pname = "write-good"; 8 + version = "1.0.8"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "btford"; 12 + repo = "write-good"; 13 + rev = "v${version}"; 14 + hash = "sha256-cq3cj2BwoQMKqo3iU2l+PR/2bJIFMSTRsDGQJ06GWXk="; 15 + }; 16 + 17 + npmDepsHash = "sha256-0M9RzyeINmUPYcLy654iI+/ehElKrhIAibpiSqlXD2A="; 18 + 19 + dontNpmBuild = true; 20 + 21 + meta = { 22 + description = "Naive linter for English prose"; 23 + homepage = "https://github.com/btford/write-good"; 24 + license = lib.licenses.mit; 25 + mainProgram = "write-good"; 26 + maintainers = with lib.maintainers; [ ]; 27 + }; 28 + }
+2
pkgs/top-level/all-packages.nix
··· 14454 14454 14455 14455 wpscan = callPackage ../tools/security/wpscan { }; 14456 14456 14457 + write-good = callPackage ../tools/text/write-good { }; 14458 + 14457 14459 wsmancli = callPackage ../tools/system/wsmancli { }; 14458 14460 14459 14461 wstunnel = haskell.lib.compose.justStaticExecutables haskellPackages.wstunnel;