lol

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

write-good: use buildNpmPackage

authored by

Robert Schütz and committed by
GitHub
cf795c35 695d64bd

+31 -243
+1
pkgs/development/node-packages/aliases.nix
··· 77 vue-cli = self."@vue/cli"; # added 2023-08-18 78 vue-language-server = self.vls; # added 2023-08-20 79 inherit (pkgs) web-ext; # added 2023-08-20 80 inherit (pkgs) yo; # added 2023-08-20 81 zx = pkgs.zx; # added 2023-08-01 82 }
··· 77 vue-cli = self."@vue/cli"; # added 2023-08-18 78 vue-language-server = self.vls; # added 2023-08-20 79 inherit (pkgs) web-ext; # added 2023-08-20 80 + inherit (pkgs) write-good; # added 2023-08-20 81 inherit (pkgs) yo; # added 2023-08-20 82 zx = pkgs.zx; # added 2023-08-01 83 }
-1
pkgs/development/node-packages/node-packages.json
··· 365 , "@withgraphite/graphite-cli" 366 , "wrangler" 367 , "wring" 368 - , "write-good" 369 , "@yaegassy/coc-nginx" 370 , "yaml-language-server" 371 , "yalc"
··· 365 , "@withgraphite/graphite-cli" 366 , "wrangler" 367 , "wring" 368 , "@yaegassy/coc-nginx" 369 , "yaml-language-server" 370 , "yalc"
-242
pkgs/development/node-packages/node-packages.nix
··· 139774 bypassCache = true; 139775 reconstructLock = true; 139776 }; 139777 - write-good = nodeEnv.buildNodePackage { 139778 - name = "write-good"; 139779 - packageName = "write-good"; 139780 - version = "1.0.8"; 139781 - src = fetchurl { 139782 - url = "https://registry.npmjs.org/write-good/-/write-good-1.0.8.tgz"; 139783 - sha512 = "P1Ct7+DNrOcr2JAxDZ3Q5i5sx2LSveu7iLaoUL0A+YiG0GKf0l5+9j3rwMeyh6JeTL1+HfQV1rnwEvzhNIvpFw=="; 139784 - }; 139785 - dependencies = [ 139786 - sources."@aashutoshrathi/word-wrap-1.2.6" 139787 - sources."@babel/runtime-7.22.10" 139788 - sources."@eslint-community/eslint-utils-4.4.0" 139789 - sources."@eslint-community/regexpp-4.6.2" 139790 - (sources."@eslint/eslintrc-2.1.1" // { 139791 - dependencies = [ 139792 - sources."debug-4.3.4" 139793 - sources."ms-2.1.2" 139794 - ]; 139795 - }) 139796 - sources."@eslint/js-8.46.0" 139797 - (sources."@humanwhocodes/config-array-0.11.10" // { 139798 - dependencies = [ 139799 - sources."debug-4.3.4" 139800 - sources."ms-2.1.2" 139801 - ]; 139802 - }) 139803 - sources."@humanwhocodes/module-importer-1.0.1" 139804 - sources."@humanwhocodes/object-schema-1.2.1" 139805 - sources."@nodelib/fs.scandir-2.1.5" 139806 - sources."@nodelib/fs.stat-2.0.5" 139807 - sources."@nodelib/fs.walk-1.2.8" 139808 - sources."@types/json5-0.0.29" 139809 - sources."acorn-8.10.0" 139810 - sources."acorn-jsx-5.3.2" 139811 - sources."adverb-where-0.2.5" 139812 - sources."ajv-6.12.6" 139813 - sources."ansi-regex-5.0.1" 139814 - sources."ansi-styles-4.3.0" 139815 - sources."argparse-2.0.1" 139816 - sources."aria-query-5.3.0" 139817 - sources."array-buffer-byte-length-1.0.0" 139818 - sources."array-includes-3.1.6" 139819 - sources."array.prototype.findlastindex-1.2.2" 139820 - sources."array.prototype.flat-1.3.1" 139821 - sources."array.prototype.flatmap-1.3.1" 139822 - sources."array.prototype.tosorted-1.1.1" 139823 - sources."arraybuffer.prototype.slice-1.0.1" 139824 - sources."ast-types-flow-0.0.7" 139825 - sources."available-typed-arrays-1.0.5" 139826 - sources."axe-core-4.7.2" 139827 - sources."axobject-query-3.2.1" 139828 - sources."balanced-match-1.0.2" 139829 - sources."brace-expansion-1.1.11" 139830 - sources."call-bind-1.0.2" 139831 - sources."callsites-3.1.0" 139832 - sources."chalk-4.1.2" 139833 - sources."color-convert-2.0.1" 139834 - sources."color-name-1.1.4" 139835 - sources."commander-2.20.3" 139836 - sources."concat-map-0.0.1" 139837 - sources."cross-spawn-7.0.3" 139838 - sources."damerau-levenshtein-1.0.8" 139839 - sources."debug-3.2.7" 139840 - sources."deep-is-0.1.4" 139841 - sources."define-properties-1.2.0" 139842 - sources."dequal-2.0.3" 139843 - sources."doctrine-2.1.0" 139844 - sources."e-prime-0.10.4" 139845 - sources."emoji-regex-9.2.2" 139846 - sources."es-abstract-1.22.1" 139847 - sources."es-set-tostringtag-2.0.1" 139848 - sources."es-shim-unscopables-1.0.0" 139849 - sources."es-to-primitive-1.2.1" 139850 - sources."escape-string-regexp-4.0.0" 139851 - (sources."eslint-8.46.0" // { 139852 - dependencies = [ 139853 - sources."debug-4.3.4" 139854 - sources."doctrine-3.0.0" 139855 - sources."ms-2.1.2" 139856 - ]; 139857 - }) 139858 - sources."eslint-import-resolver-node-0.3.9" 139859 - sources."eslint-module-utils-2.8.0" 139860 - sources."eslint-plugin-import-2.28.0" 139861 - sources."eslint-plugin-jsx-a11y-6.7.1" 139862 - (sources."eslint-plugin-react-7.33.1" // { 139863 - dependencies = [ 139864 - sources."resolve-2.0.0-next.4" 139865 - ]; 139866 - }) 139867 - sources."eslint-plugin-react-hooks-4.6.0" 139868 - sources."eslint-scope-7.2.2" 139869 - sources."eslint-visitor-keys-3.4.2" 139870 - sources."espree-9.6.1" 139871 - sources."esquery-1.5.0" 139872 - sources."esrecurse-4.3.0" 139873 - sources."estraverse-5.3.0" 139874 - sources."esutils-2.0.3" 139875 - sources."fast-deep-equal-3.1.3" 139876 - sources."fast-json-stable-stringify-2.1.0" 139877 - sources."fast-levenshtein-2.0.6" 139878 - sources."fastq-1.15.0" 139879 - sources."file-entry-cache-6.0.1" 139880 - sources."find-up-5.0.0" 139881 - sources."flat-cache-3.0.4" 139882 - sources."flatted-3.2.7" 139883 - sources."for-each-0.3.3" 139884 - sources."fs.realpath-1.0.0" 139885 - sources."function-bind-1.1.1" 139886 - sources."function.prototype.name-1.1.5" 139887 - sources."functions-have-names-1.2.3" 139888 - sources."get-intrinsic-1.2.1" 139889 - sources."get-symbol-description-1.0.0" 139890 - sources."glob-7.2.3" 139891 - sources."glob-parent-6.0.2" 139892 - sources."globals-13.20.0" 139893 - sources."globalthis-1.0.3" 139894 - sources."gopd-1.0.1" 139895 - sources."graphemer-1.4.0" 139896 - sources."has-1.0.3" 139897 - sources."has-bigints-1.0.2" 139898 - sources."has-flag-4.0.0" 139899 - sources."has-property-descriptors-1.0.0" 139900 - sources."has-proto-1.0.1" 139901 - sources."has-symbols-1.0.3" 139902 - sources."has-tostringtag-1.0.0" 139903 - sources."ignore-5.2.4" 139904 - sources."import-fresh-3.3.0" 139905 - sources."imurmurhash-0.1.4" 139906 - sources."inflight-1.0.6" 139907 - sources."inherits-2.0.4" 139908 - sources."internal-slot-1.0.5" 139909 - sources."is-array-buffer-3.0.2" 139910 - sources."is-bigint-1.0.4" 139911 - sources."is-boolean-object-1.1.2" 139912 - sources."is-callable-1.2.7" 139913 - sources."is-core-module-2.13.0" 139914 - sources."is-date-object-1.0.5" 139915 - sources."is-extglob-2.1.1" 139916 - sources."is-glob-4.0.3" 139917 - sources."is-negative-zero-2.0.2" 139918 - sources."is-number-object-1.0.7" 139919 - sources."is-path-inside-3.0.3" 139920 - sources."is-regex-1.1.4" 139921 - sources."is-shared-array-buffer-1.0.2" 139922 - sources."is-string-1.0.7" 139923 - sources."is-symbol-1.0.4" 139924 - sources."is-typed-array-1.1.12" 139925 - sources."is-weakref-1.0.2" 139926 - sources."isarray-2.0.5" 139927 - sources."isexe-2.0.0" 139928 - sources."js-tokens-4.0.0" 139929 - sources."js-yaml-4.1.0" 139930 - sources."json-schema-traverse-0.4.1" 139931 - sources."json-stable-stringify-without-jsonify-1.0.1" 139932 - sources."json5-1.0.2" 139933 - sources."jsx-ast-utils-3.3.5" 139934 - sources."language-subtag-registry-0.3.22" 139935 - sources."language-tags-1.0.5" 139936 - sources."levn-0.4.1" 139937 - sources."locate-path-6.0.0" 139938 - sources."lodash.merge-4.6.2" 139939 - sources."loose-envify-1.4.0" 139940 - sources."minimatch-3.1.2" 139941 - sources."minimist-1.2.8" 139942 - sources."ms-2.1.3" 139943 - sources."natural-compare-1.4.0" 139944 - sources."no-cliches-0.3.4" 139945 - sources."object-assign-4.1.1" 139946 - sources."object-inspect-1.12.3" 139947 - sources."object-keys-1.1.1" 139948 - sources."object.assign-4.1.4" 139949 - sources."object.entries-1.1.6" 139950 - sources."object.fromentries-2.0.6" 139951 - sources."object.groupby-1.0.0" 139952 - sources."object.hasown-1.1.2" 139953 - sources."object.values-1.1.6" 139954 - sources."once-1.4.0" 139955 - sources."optionator-0.9.3" 139956 - sources."p-limit-3.1.0" 139957 - sources."p-locate-5.0.0" 139958 - sources."parent-module-1.0.1" 139959 - sources."passive-voice-0.1.0" 139960 - sources."path-exists-4.0.0" 139961 - sources."path-is-absolute-1.0.1" 139962 - sources."path-key-3.1.1" 139963 - sources."path-parse-1.0.7" 139964 - sources."prelude-ls-1.2.1" 139965 - sources."prop-types-15.8.1" 139966 - sources."punycode-2.3.0" 139967 - sources."queue-microtask-1.2.3" 139968 - sources."react-is-16.13.1" 139969 - sources."regenerator-runtime-0.14.0" 139970 - sources."regexp.prototype.flags-1.5.0" 139971 - sources."resolve-1.22.4" 139972 - sources."resolve-from-4.0.0" 139973 - sources."reusify-1.0.4" 139974 - sources."rimraf-3.0.2" 139975 - sources."run-parallel-1.2.0" 139976 - sources."safe-array-concat-1.0.0" 139977 - sources."safe-regex-test-1.0.0" 139978 - sources."semver-6.3.1" 139979 - sources."shebang-command-2.0.0" 139980 - sources."shebang-regex-3.0.0" 139981 - sources."side-channel-1.0.4" 139982 - sources."string.prototype.matchall-4.0.8" 139983 - sources."string.prototype.trim-1.2.7" 139984 - sources."string.prototype.trimend-1.0.6" 139985 - sources."string.prototype.trimstart-1.0.6" 139986 - sources."strip-ansi-6.0.1" 139987 - sources."strip-bom-3.0.0" 139988 - sources."strip-json-comments-3.1.1" 139989 - sources."supports-color-7.2.0" 139990 - sources."supports-preserve-symlinks-flag-1.0.0" 139991 - sources."text-table-0.2.0" 139992 - sources."too-wordy-0.3.4" 139993 - sources."tsconfig-paths-3.14.2" 139994 - sources."type-check-0.4.0" 139995 - sources."type-fest-0.20.2" 139996 - sources."typed-array-buffer-1.0.0" 139997 - sources."typed-array-byte-length-1.0.0" 139998 - sources."typed-array-byte-offset-1.0.0" 139999 - sources."typed-array-length-1.0.4" 140000 - sources."unbox-primitive-1.0.2" 140001 - sources."uri-js-4.4.1" 140002 - sources."weasel-words-0.1.1" 140003 - sources."which-2.0.2" 140004 - sources."which-boxed-primitive-1.0.2" 140005 - sources."which-typed-array-1.1.11" 140006 - sources."wrappy-1.0.2" 140007 - sources."yocto-queue-0.1.0" 140008 - ]; 140009 - buildInputs = globalBuildInputs; 140010 - meta = { 140011 - description = "Naive linter for English prose"; 140012 - homepage = "https://github.com/btford/write-good#readme"; 140013 - license = "MIT"; 140014 - }; 140015 - production = true; 140016 - bypassCache = true; 140017 - reconstructLock = true; 140018 - }; 140019 "@yaegassy/coc-nginx" = nodeEnv.buildNodePackage { 140020 name = "_at_yaegassy_slash_coc-nginx"; 140021 packageName = "@yaegassy/coc-nginx";
··· 139774 bypassCache = true; 139775 reconstructLock = true; 139776 }; 139777 "@yaegassy/coc-nginx" = nodeEnv.buildNodePackage { 139778 name = "_at_yaegassy_slash_coc-nginx"; 139779 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 14455 wpscan = callPackage ../tools/security/wpscan { }; 14456 14457 wsmancli = callPackage ../tools/system/wsmancli { }; 14458 14459 wstunnel = haskell.lib.compose.justStaticExecutables haskellPackages.wstunnel;
··· 14454 14455 wpscan = callPackage ../tools/security/wpscan { }; 14456 14457 + write-good = callPackage ../tools/text/write-good { }; 14458 + 14459 wsmancli = callPackage ../tools/system/wsmancli { }; 14460 14461 wstunnel = haskell.lib.compose.justStaticExecutables haskellPackages.wstunnel;