Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #282950 from dotlambda/pm2-buildNpmPackage

pm2: use buildNpmPackage

authored by Robert Schütz and committed by GitHub eeeb5c48 812825b9

+30 -222
+29
pkgs/by-name/pm/pm2/package.nix
··· 1 + { lib 2 + , buildNpmPackage 3 + , fetchFromGitHub 4 + }: 5 + 6 + buildNpmPackage rec { 7 + pname = "pm2"; 8 + version = "5.3.1"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "Unitech"; 12 + repo = "pm2"; 13 + rev = "v${version}"; 14 + hash = "sha256-thShqrnM5S3/IImEm+2vHVRLCsLJN5NGaSRYubtULW0="; 15 + }; 16 + 17 + npmDepsHash = "sha256-6M8kwiCHaQzcFyUUx7Yax/dobATWXG0Di7enEzlO8YE="; 18 + 19 + dontNpmBuild = true; 20 + 21 + meta = { 22 + changelog = "https://github.com/Unitech/pm2/blob/${src.rev}/CHANGELOG.md"; 23 + description = "Node.js production process manager with a built-in load balancer"; 24 + homepage = "https://github.com/Unitech/pm2"; 25 + license = lib.licenses.agpl3Only; 26 + mainProgram = "pm2"; 27 + maintainers = with lib.maintainers; [ jeremyschlatter ]; 28 + }; 29 + }
+1
pkgs/development/node-packages/aliases.nix
··· 111 111 ocaml-language-server = throw "ocaml-language-server was removed because it was abandoned upstream"; # added 2023-09-04 112 112 parcel-bundler = parcel; # added 2023-09-04 113 113 pkg = pkgs.vercel-pkg; # added 2023-10-04 114 + inherit (pkgs) pm2; # added 2024-01-22 114 115 prettier_d_slim = pkgs.prettier-d-slim; # added 2023-09-14 115 116 inherit (pkgs) pxder; # added 2023-09-26 116 117 inherit (pkgs) quicktype; # added 2023-09-09
-1
pkgs/development/node-packages/node-packages.json
··· 186 186 , "peerflix" 187 187 , "peerflix-server" 188 188 , {"pgrok-build-deps": "../../tools/networking/pgrok/build-deps"} 189 - , "pm2" 190 189 , "pnpm" 191 190 , "poor-mans-t-sql-formatter-cli" 192 191 , "postcss"
-219
pkgs/development/node-packages/node-packages.nix
··· 92027 92027 bypassCache = true; 92028 92028 reconstructLock = true; 92029 92029 }; 92030 - pm2 = nodeEnv.buildNodePackage { 92031 - name = "pm2"; 92032 - packageName = "pm2"; 92033 - version = "5.3.0"; 92034 - src = fetchurl { 92035 - url = "https://registry.npmjs.org/pm2/-/pm2-5.3.0.tgz"; 92036 - sha512 = "xscmQiAAf6ArVmKhjKTeeN8+Td7ZKnuZFFPw1DGkdFPR/0Iyx+m+1+OpCdf9+HQopX3VPc9/wqPQHqVOfHum9w=="; 92037 - }; 92038 - dependencies = [ 92039 - (sources."@opencensus/core-0.0.9" // { 92040 - dependencies = [ 92041 - sources."semver-5.7.2" 92042 - ]; 92043 - }) 92044 - (sources."@opencensus/propagation-b3-0.0.8" // { 92045 - dependencies = [ 92046 - sources."@opencensus/core-0.0.8" 92047 - sources."semver-5.7.2" 92048 - ]; 92049 - }) 92050 - (sources."@pm2/agent-2.0.3" // { 92051 - dependencies = [ 92052 - sources."dayjs-1.8.36" 92053 - ]; 92054 - }) 92055 - (sources."@pm2/io-5.0.2" // { 92056 - dependencies = [ 92057 - sources."async-2.6.4" 92058 - sources."eventemitter2-6.4.9" 92059 - sources."tslib-1.9.3" 92060 - ]; 92061 - }) 92062 - (sources."@pm2/js-api-0.6.7" // { 92063 - dependencies = [ 92064 - sources."async-2.6.4" 92065 - sources."eventemitter2-6.4.9" 92066 - ]; 92067 - }) 92068 - sources."@pm2/pm2-version-check-1.0.4" 92069 - sources."@tootallnate/quickjs-emscripten-0.23.0" 92070 - sources."agent-base-7.1.0" 92071 - sources."amp-0.3.1" 92072 - sources."amp-message-0.1.2" 92073 - sources."ansi-colors-4.1.3" 92074 - sources."ansi-styles-4.3.0" 92075 - sources."anymatch-3.1.3" 92076 - (sources."argparse-1.0.10" // { 92077 - dependencies = [ 92078 - sources."sprintf-js-1.0.3" 92079 - ]; 92080 - }) 92081 - sources."ast-types-0.13.4" 92082 - sources."async-3.2.5" 92083 - (sources."async-listener-0.6.10" // { 92084 - dependencies = [ 92085 - sources."semver-5.7.2" 92086 - ]; 92087 - }) 92088 - sources."axios-0.21.4" 92089 - sources."balanced-match-1.0.2" 92090 - sources."basic-ftp-5.0.4" 92091 - sources."binary-extensions-2.2.0" 92092 - sources."blessed-0.1.81" 92093 - sources."bodec-0.1.0" 92094 - sources."brace-expansion-1.1.11" 92095 - sources."braces-3.0.2" 92096 - sources."buffer-from-1.1.2" 92097 - sources."bufferutil-4.0.8" 92098 - sources."chalk-3.0.0" 92099 - sources."charm-0.1.2" 92100 - sources."chokidar-3.5.3" 92101 - sources."cli-tableau-2.0.1" 92102 - sources."color-convert-2.0.1" 92103 - sources."color-name-1.1.4" 92104 - sources."commander-2.15.1" 92105 - sources."concat-map-0.0.1" 92106 - sources."continuation-local-storage-3.2.1" 92107 - sources."croner-4.1.97" 92108 - sources."culvert-0.1.2" 92109 - sources."data-uri-to-buffer-6.0.1" 92110 - sources."dayjs-1.11.10" 92111 - sources."debug-4.3.4" 92112 - sources."degenerator-5.0.1" 92113 - sources."emitter-listener-1.1.2" 92114 - sources."enquirer-2.3.6" 92115 - sources."escape-string-regexp-4.0.0" 92116 - sources."escodegen-2.1.0" 92117 - sources."esprima-4.0.1" 92118 - sources."estraverse-5.3.0" 92119 - sources."esutils-2.0.3" 92120 - sources."eventemitter2-5.0.1" 92121 - sources."fast-json-patch-3.1.1" 92122 - sources."fclone-1.0.11" 92123 - sources."fill-range-7.0.1" 92124 - sources."follow-redirects-1.15.4" 92125 - sources."fs-extra-8.1.0" 92126 - sources."fs.realpath-1.0.0" 92127 - sources."fsevents-2.3.3" 92128 - sources."function-bind-1.1.2" 92129 - sources."get-uri-6.0.2" 92130 - sources."git-node-fs-1.0.0" 92131 - sources."git-sha1-0.1.2" 92132 - sources."glob-7.2.3" 92133 - sources."glob-parent-5.1.2" 92134 - sources."graceful-fs-4.2.11" 92135 - sources."has-flag-4.0.0" 92136 - sources."hasown-2.0.0" 92137 - sources."http-proxy-agent-7.0.0" 92138 - sources."https-proxy-agent-7.0.2" 92139 - sources."iconv-lite-0.4.24" 92140 - sources."inflight-1.0.6" 92141 - sources."inherits-2.0.4" 92142 - sources."ini-1.3.8" 92143 - sources."ip-1.1.8" 92144 - sources."is-binary-path-2.1.0" 92145 - sources."is-core-module-2.13.1" 92146 - sources."is-extglob-2.1.1" 92147 - sources."is-glob-4.0.3" 92148 - sources."is-number-7.0.0" 92149 - sources."js-git-0.7.8" 92150 - sources."json-stringify-safe-5.0.1" 92151 - sources."jsonfile-4.0.0" 92152 - sources."lazy-1.0.11" 92153 - sources."lodash-4.17.21" 92154 - sources."log-driver-1.2.7" 92155 - sources."lru-cache-7.18.3" 92156 - sources."minimatch-3.1.2" 92157 - sources."mkdirp-1.0.4" 92158 - sources."module-details-from-path-1.0.3" 92159 - sources."ms-2.1.2" 92160 - sources."mute-stream-0.0.8" 92161 - (sources."needle-2.4.0" // { 92162 - dependencies = [ 92163 - sources."debug-3.2.7" 92164 - ]; 92165 - }) 92166 - sources."netmask-2.0.2" 92167 - sources."node-gyp-build-4.8.0" 92168 - sources."normalize-path-3.0.0" 92169 - (sources."nssocket-0.6.0" // { 92170 - dependencies = [ 92171 - sources."eventemitter2-0.4.14" 92172 - ]; 92173 - }) 92174 - sources."once-1.4.0" 92175 - sources."pac-proxy-agent-7.0.1" 92176 - sources."pac-resolver-7.0.0" 92177 - sources."pako-0.2.9" 92178 - sources."path-is-absolute-1.0.1" 92179 - sources."path-parse-1.0.7" 92180 - sources."picomatch-2.3.1" 92181 - sources."pidusage-3.0.2" 92182 - sources."pm2-axon-4.0.1" 92183 - sources."pm2-axon-rpc-0.7.1" 92184 - sources."pm2-deploy-1.0.2" 92185 - sources."pm2-multimeter-0.1.2" 92186 - (sources."pm2-sysmonit-1.2.8" // { 92187 - dependencies = [ 92188 - sources."pidusage-2.0.21" 92189 - ]; 92190 - }) 92191 - sources."promptly-2.2.0" 92192 - sources."proxy-agent-6.3.1" 92193 - sources."proxy-from-env-1.1.0" 92194 - sources."read-1.0.7" 92195 - sources."readdirp-3.6.0" 92196 - sources."require-in-the-middle-5.2.0" 92197 - sources."resolve-1.22.8" 92198 - sources."run-series-1.1.9" 92199 - sources."safe-buffer-5.2.1" 92200 - sources."safer-buffer-2.1.2" 92201 - sources."sax-1.3.0" 92202 - (sources."semver-7.5.4" // { 92203 - dependencies = [ 92204 - sources."lru-cache-6.0.0" 92205 - ]; 92206 - }) 92207 - sources."shimmer-1.2.1" 92208 - sources."signal-exit-3.0.7" 92209 - sources."smart-buffer-4.2.0" 92210 - (sources."socks-2.7.1" // { 92211 - dependencies = [ 92212 - sources."ip-2.0.0" 92213 - ]; 92214 - }) 92215 - sources."socks-proxy-agent-8.0.2" 92216 - sources."source-map-0.6.1" 92217 - sources."source-map-support-0.5.21" 92218 - sources."sprintf-js-1.1.2" 92219 - sources."supports-color-7.2.0" 92220 - sources."supports-preserve-symlinks-flag-1.0.0" 92221 - sources."systeminformation-5.21.22" 92222 - sources."to-regex-range-5.0.1" 92223 - sources."tslib-2.6.2" 92224 - sources."tv4-1.3.0" 92225 - sources."tx2-1.0.5" 92226 - sources."universalify-0.1.2" 92227 - sources."utf-8-validate-5.0.10" 92228 - sources."uuid-3.4.0" 92229 - (sources."vizion-2.2.1" // { 92230 - dependencies = [ 92231 - sources."async-2.6.4" 92232 - ]; 92233 - }) 92234 - sources."wrappy-1.0.2" 92235 - sources."ws-7.4.6" 92236 - sources."yallist-4.0.0" 92237 - sources."yamljs-0.3.0" 92238 - ]; 92239 - buildInputs = globalBuildInputs; 92240 - meta = { 92241 - description = "Production process manager for Node.JS applications with a built-in load balancer."; 92242 - homepage = "http://pm2.keymetrics.io/"; 92243 - license = "AGPL-3.0"; 92244 - }; 92245 - production = true; 92246 - bypassCache = true; 92247 - reconstructLock = true; 92248 - }; 92249 92030 pnpm = nodeEnv.buildNodePackage { 92250 92031 name = "pnpm"; 92251 92032 packageName = "pnpm";
-2
pkgs/top-level/all-packages.nix
··· 12178 12178 12179 12179 plowshare = callPackage ../tools/misc/plowshare { }; 12180 12180 12181 - pm2 = nodePackages.pm2; 12182 - 12183 12181 pmenu = callPackage ../tools/X11/pmenu { }; 12184 12182 12185 12183 pngcheck = callPackage ../tools/graphics/pngcheck { };