gnu: node: Use unbundled dependencies.

* gnu/packages/node.scm (node)[inputs]: Add c-ares and http-parser.
[arguments]: Add configure flags for using system libraries.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
Jelle Licht 2017-05-22 20:03:21 +02:00 committed by Marius Bakke
parent 1fdb883082
commit ea584538ac
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 9 additions and 3 deletions

View File

@ -26,6 +26,7 @@
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages adns)
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages compression) #:use-module (gnu packages compression)
#:use-module (gnu packages gcc) #:use-module (gnu packages gcc)
@ -33,7 +34,8 @@
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages tls)) #:use-module (gnu packages tls)
#:use-module (gnu packages web))
(define-public node (define-public node
(package (package
@ -50,10 +52,12 @@
(patches (search-patches "node-9077.patch")))) (patches (search-patches "node-9077.patch"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
;; TODO: Package http_parser and add --shared-http-parser. ;; TODO: Purge the bundled copies from the source.
'(#:configure-flags '("--shared-openssl" '(#:configure-flags '("--shared-openssl"
"--shared-zlib" "--shared-zlib"
"--shared-libuv" "--shared-libuv"
"--shared-cares"
"--shared-http-parser"
"--without-snapshot") "--without-snapshot")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
@ -123,7 +127,9 @@
("util-linux" ,util-linux) ("util-linux" ,util-linux)
("which" ,which))) ("which" ,which)))
(inputs (inputs
`(("libuv" ,libuv) `(("c-ares" ,c-ares)
("http-parser" ,http-parser)
("libuv" ,libuv)
("openssl" ,openssl) ("openssl" ,openssl)
("zlib" ,zlib))) ("zlib" ,zlib)))
(synopsis "Evented I/O for V8 JavaScript") (synopsis "Evented I/O for V8 JavaScript")