summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-01-02 23:48:58 +0100
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-02-08 21:23:33 +0100
commitf117a94d0c6d243b21b2ab8e9865860faa88ac70 (patch)
treefd7dd2c2670bdea7aaa591db41dc240319c5a4db /gnu
parentf9040f253a38c9f637110812e4a9029f017e125e (diff)
gnu: Add node-https-proxy-agent.
* gnu/packages/node-xyz.scm (node-https-proxy-agent): New variable. Change-Id: Ib8566287facdf5585b1b0f240030b40fe845e588
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/node-xyz.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm
index 36c42881493..a62df3b39cf 100644
--- a/gnu/packages/node-xyz.scm
+++ b/gnu/packages/node-xyz.scm
@@ -1569,6 +1569,55 @@ Node's @code{inherits} constructor that can be used in browsers, while
1569defaulting to Node's implementation otherwise.") 1569defaulting to Node's implementation otherwise.")
1570 (license license:isc))) 1570 (license license:isc)))
1571 1571
1572(define-public node-https-proxy-agent
1573 (package
1574 (name "node-https-proxy-agent")
1575 (version "7.0.6")
1576 (source
1577 (origin
1578 (method git-fetch)
1579 (uri (git-reference
1580 (url "https://github.com/TooTallNate/proxy-agents")
1581 (commit (string-append "https-proxy-agent@" version))))
1582 (file-name (git-file-name name version))
1583 (sha256
1584 (base32 "0c02kcbfp63r1y36hrkhzkmn3gz6ad2s577js94776vza3r7r631"))))
1585 (build-system node-build-system)
1586 (arguments
1587 (list
1588 #:tests? #f
1589 #:phases
1590 #~(modify-phases %standard-phases
1591 (add-after 'unpack 'change-directory
1592 (lambda _
1593 (chdir "packages/https-proxy-agent")))
1594 (add-after 'patch-dependencies 'delete-dev-dependencies
1595 (lambda _
1596 (modify-json (delete-dev-dependencies))))
1597 (replace 'build
1598 (lambda* (#:key inputs native-inputs #:allow-other-keys)
1599 (let ((esbuild (search-input-file (or native-inputs inputs) "/bin/esbuild")))
1600 (mkdir-p "dist")
1601 (for-each
1602 (lambda (ts-file)
1603 (let* ((base (basename ts-file ".ts"))
1604 (js-file (string-append "dist/" base ".js")))
1605 (invoke esbuild ts-file
1606 (string-append "--outfile=" js-file)
1607 "--format=cjs"
1608 "--platform=node"
1609 "--target=es2020")))
1610 (find-files "src" "\\.ts$"))))))))
1611 (native-inputs (list esbuild))
1612 (inputs
1613 (list node-agent-base node-debug))
1614 (home-page "https://github.com/TooTallNate/proxy-agents")
1615 (synopsis "HTTPS proxy HTTP.Agent implementation")
1616 (description "This package provides an @code{HTTP.Agent} implementation
1617that connects to a specified HTTP or HTTPS proxy server, and can be used with
1618the built-in https module.")
1619 (license license:expat)))
1620
1572(define-public node-irc 1621(define-public node-irc
1573 (package 1622 (package
1574 (name "node-irc") 1623 (name "node-irc")