Merge pull request #250203 from dotlambda/configurable-http-proxy-buildNpmPackage

configurable-http-proxy: use buildNpmPackage

authored by

OTABI Tomoya and committed by
GitHub
5041a0e5 36ec59c0

+35 -62
+1
pkgs/development/node-packages/aliases.nix
··· 52 52 inherit (pkgs) carto; # added 2023-08-17 53 53 castnow = pkgs.castnow; # added 2023-07-30 54 54 inherit (pkgs) clean-css-cli; # added 2023-08-18 55 + inherit (pkgs) configurable-http-proxy; # added 2023-08-19 55 56 eask = pkgs.eask; # added 2023-08-17 56 57 inherit (pkgs.elmPackages) elm-test; 57 58 eslint_d = pkgs.eslint_d; # Added 2023-05-26
-1
pkgs/development/node-packages/node-packages.json
··· 99 99 , "coffee-script" 100 100 , "coinmon" 101 101 , "concurrently" 102 - , "configurable-http-proxy" 103 102 , "conventional-changelog-cli" 104 103 , "cordova" 105 104 , "cpy-cli"
-59
pkgs/development/node-packages/node-packages.nix
··· 94423 94423 bypassCache = true; 94424 94424 reconstructLock = true; 94425 94425 }; 94426 - configurable-http-proxy = nodeEnv.buildNodePackage { 94427 - name = "configurable-http-proxy"; 94428 - packageName = "configurable-http-proxy"; 94429 - version = "4.5.5"; 94430 - src = fetchurl { 94431 - url = "https://registry.npmjs.org/configurable-http-proxy/-/configurable-http-proxy-4.5.5.tgz"; 94432 - sha512 = "1GZ1rf+jAqkx/CAO0RZGO8y4kJVZoa72t1/Kank0ZdFAzP9GrCAlg+6qzxxSZ7cKbpyX+KFyif26I+8SN4HCDA=="; 94433 - }; 94434 - dependencies = [ 94435 - sources."@colors/colors-1.5.0" 94436 - sources."@dabh/diagnostics-2.0.3" 94437 - sources."@types/triple-beam-1.3.2" 94438 - sources."async-3.2.4" 94439 - sources."bintrees-1.0.2" 94440 - sources."color-3.2.1" 94441 - sources."color-convert-1.9.3" 94442 - sources."color-name-1.1.3" 94443 - sources."color-string-1.9.1" 94444 - sources."colorspace-1.1.4" 94445 - sources."commander-7.2.0" 94446 - sources."enabled-2.0.0" 94447 - sources."eventemitter3-4.0.7" 94448 - sources."fecha-4.2.3" 94449 - sources."fn.name-1.1.0" 94450 - sources."follow-redirects-1.15.2" 94451 - sources."http-proxy-1.18.1" 94452 - sources."inherits-2.0.4" 94453 - sources."is-arrayish-0.3.2" 94454 - sources."is-stream-2.0.1" 94455 - sources."kuler-2.0.0" 94456 - sources."logform-2.5.1" 94457 - sources."ms-2.1.3" 94458 - sources."one-time-1.0.0" 94459 - sources."prom-client-14.2.0" 94460 - sources."readable-stream-3.6.2" 94461 - sources."requires-port-1.0.0" 94462 - sources."safe-buffer-5.2.1" 94463 - sources."safe-stable-stringify-2.4.3" 94464 - sources."simple-swizzle-0.2.2" 94465 - sources."stack-trace-0.0.10" 94466 - sources."strftime-0.10.2" 94467 - sources."string_decoder-1.3.0" 94468 - sources."tdigest-0.1.2" 94469 - sources."text-hex-1.0.0" 94470 - sources."triple-beam-1.4.1" 94471 - sources."util-deprecate-1.0.2" 94472 - sources."winston-3.8.2" 94473 - sources."winston-transport-4.5.0" 94474 - ]; 94475 - buildInputs = globalBuildInputs; 94476 - meta = { 94477 - description = "A configurable-on-the-fly HTTP Proxy"; 94478 - homepage = "https://github.com/jupyterhub/configurable-http-proxy#readme"; 94479 - license = "BSD-3-Clause"; 94480 - }; 94481 - production = true; 94482 - bypassCache = true; 94483 - reconstructLock = true; 94484 - }; 94485 94426 conventional-changelog-cli = nodeEnv.buildNodePackage { 94486 94427 name = "conventional-changelog-cli"; 94487 94428 packageName = "conventional-changelog-cli";
+3 -2
pkgs/development/python-modules/jupyterhub/default.nix
··· 5 5 , beautifulsoup4 6 6 , buildPythonPackage 7 7 , certipy 8 + , configurable-http-proxy 8 9 , cryptography 9 10 , entrypoints 10 11 , fetchPypi ··· 96 97 97 98 substituteInPlace jupyterhub/proxy.py --replace \ 98 99 "'configurable-http-proxy'" \ 99 - "'${nodePackages.configurable-http-proxy}/bin/configurable-http-proxy'" 100 + "'${configurable-http-proxy}/bin/configurable-http-proxy'" 100 101 101 102 substituteInPlace jupyterhub/tests/test_proxy.py --replace \ 102 103 "'configurable-http-proxy'" \ 103 - "'${nodePackages.configurable-http-proxy}/bin/configurable-http-proxy'" 104 + "'${configurable-http-proxy}/bin/configurable-http-proxy'" 104 105 105 106 substituteInPlace setup.py --replace \ 106 107 "'npm'" "'true'"
+29
pkgs/tools/networking/configurable-http-proxy/default.nix
··· 1 + { lib 2 + , buildNpmPackage 3 + , fetchFromGitHub 4 + }: 5 + 6 + buildNpmPackage rec { 7 + pname = "configurable-http-proxy"; 8 + version = "4.5.6"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "jupyterhub"; 12 + repo = "configurable-http-proxy"; 13 + rev = version; 14 + hash = "sha256-nj6+GmBw5YSQs23rWVh3qU4jdzRdbPyx43QmZ3LRwn4="; 15 + }; 16 + 17 + npmDepsHash = "sha256-3HzVI7L1BH9PEBcb7CWWRQqWdSlWiCTo0qqnlSHGn7Y="; 18 + 19 + dontNpmBuild = true; 20 + 21 + meta = { 22 + changelog = "https://github.com/jupyterhub/configurable-http-proxy/blob/${src.rev}/CHANGELOG.md"; 23 + description = "A configurable-on-the-fly HTTP Proxy"; 24 + homepage = "https://github.com/jupyterhub/configurable-http-proxy"; 25 + license = lib.licenses.bsd3; 26 + mainProgram = "configurable-http-proxy"; 27 + maintainers = with lib.maintainers; [ ixxie ]; 28 + }; 29 + }
+2
pkgs/top-level/all-packages.nix
··· 1676 1676 1677 1677 colorless = callPackage ../tools/misc/colorless { }; 1678 1678 1679 + configurable-http-proxy = callPackage ../tools/networking/configurable-http-proxy { }; 1680 + 1679 1681 cope = callPackage ../tools/misc/cope { }; 1680 1682 1681 1683 crypto-tracker = callPackage ../tools/misc/crypto-tracker { };