mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: node: Build with nghttp2@1.44.0.
* gnu/packages/web.scm (nghttp2-for-node): New variable. * gnu/packages/node.scm (node, node-lts)[native-inputs, inputs]: Change from NGHTTP2 to NGHTTP2-FOR-NODE.
This commit is contained in:
parent
5708638a93
commit
445658bbe1
2 changed files with 20 additions and 4 deletions
|
@ -289,7 +289,7 @@ (define-public node
|
|||
http-parser
|
||||
icu4c
|
||||
libuv
|
||||
`(,nghttp2 "lib")
|
||||
`(,nghttp2-for-node "lib")
|
||||
openssl
|
||||
zlib
|
||||
;; Regular build-time dependencies.
|
||||
|
@ -309,7 +309,7 @@ (define-public node
|
|||
http-parser
|
||||
icu4c
|
||||
libuv
|
||||
`(,nghttp2 "lib")
|
||||
`(,nghttp2-for-node "lib")
|
||||
openssl
|
||||
python-wrapper ;for node-gyp (supports python3)
|
||||
zlib))
|
||||
|
@ -866,7 +866,7 @@ (define-public node-lts
|
|||
brotli
|
||||
icu4c-70
|
||||
libuv-for-node
|
||||
`(,nghttp2 "lib")
|
||||
`(,nghttp2-for-node "lib")
|
||||
openssl
|
||||
zlib
|
||||
;; Regular build-time dependencies.
|
||||
|
@ -883,7 +883,7 @@ (define-public node-lts
|
|||
libuv-for-node
|
||||
llhttp-bootstrap
|
||||
brotli
|
||||
`(,nghttp2 "lib")
|
||||
`(,nghttp2-for-node "lib")
|
||||
openssl
|
||||
python-wrapper ;; for node-gyp (supports python3)
|
||||
zlib))))
|
||||
|
|
|
@ -7568,6 +7568,22 @@ (define-public nghttp2
|
|||
@end itemize\n")
|
||||
(license license:expat)))
|
||||
|
||||
;; Older variant for Node versions < 17 (upstream commit 43291b98edaa682
|
||||
;; add support for newer nghttp2, but is difficult to backport).
|
||||
(define-public nghttp2-for-node
|
||||
(hidden-package
|
||||
(package
|
||||
(inherit nghttp2)
|
||||
(version "1.44.0")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://github.com/nghttp2/nghttp2/"
|
||||
"releases/download/v" version "/"
|
||||
"nghttp2-" version ".tar.xz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0p9wvva4g8hwj55x19rbyvnq2dbsnf65rphhxnpqs7ll54xlg6an")))))))
|
||||
|
||||
(define-public hpcguix-web
|
||||
(package
|
||||
(name "hpcguix-web")
|
||||
|
|
Loading…
Reference in a new issue