gnu: nginx: Build http_xslt_module.
* gnu/packages/web.scm (nginx)[inputs]: Add libxml2 and libxslt. [arguments]: Add "--with-http_xslt_module" to the configure flags. Set up CFLAGS to find libxml2 headers.
This commit is contained in:
parent
39174fd7a7
commit
e0e0178f8e
1 changed files with 9 additions and 2 deletions
|
@ -376,7 +376,9 @@ the same, being completely separated from the Internet.")
|
||||||
(base32
|
(base32
|
||||||
"121d11693d6dbim3lh64hrqi66z129z30cvcrpbnm631yl7jkl78"))))
|
"121d11693d6dbim3lh64hrqi66z129z30cvcrpbnm631yl7jkl78"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("openssl" ,openssl)
|
(inputs `(("libxml2" ,libxml2)
|
||||||
|
("libxslt" ,libxslt)
|
||||||
|
("openssl" ,openssl)
|
||||||
("pcre" ,pcre)
|
("pcre" ,pcre)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -390,11 +392,12 @@ the same, being completely separated from the Internet.")
|
||||||
#t))
|
#t))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
;; The configure script is hand-written, not from GNU autotools.
|
;; The configure script is hand-written, not from GNU autotools.
|
||||||
(lambda* (#:key configure-flags outputs #:allow-other-keys)
|
(lambda* (#:key configure-flags inputs outputs #:allow-other-keys)
|
||||||
(let ((flags
|
(let ((flags
|
||||||
(append (list (string-append "--prefix=" (assoc-ref outputs "out"))
|
(append (list (string-append "--prefix=" (assoc-ref outputs "out"))
|
||||||
"--with-http_ssl_module"
|
"--with-http_ssl_module"
|
||||||
"--with-http_v2_module"
|
"--with-http_v2_module"
|
||||||
|
"--with-http_xslt_module"
|
||||||
"--with-pcre-jit"
|
"--with-pcre-jit"
|
||||||
"--with-debug"
|
"--with-debug"
|
||||||
"--with-stream"
|
"--with-stream"
|
||||||
|
@ -418,6 +421,10 @@ the same, being completely separated from the Internet.")
|
||||||
system ":" release ":" machine)))
|
system ":" release ":" machine)))
|
||||||
configure-flags)))
|
configure-flags)))
|
||||||
(setenv "CC" "gcc")
|
(setenv "CC" "gcc")
|
||||||
|
;; Fix ./configure test for ‘#include <libxml/parser.h>’.
|
||||||
|
(setenv "CFLAGS" ; CPPFLAGS is not respected
|
||||||
|
(string-append "-I" (assoc-ref inputs "libxml2")
|
||||||
|
"/include/libxml2"))
|
||||||
(format #t "configure flags: ~s~%" flags)
|
(format #t "configure flags: ~s~%" flags)
|
||||||
(apply invoke "./configure" flags)
|
(apply invoke "./configure" flags)
|
||||||
#t)))
|
#t)))
|
||||||
|
|
Reference in a new issue