gnu: nginx: Allow to pass configure-flags.
* gnu/packages/web.scm (nginx)[arguments]<configure>: Accept '#:configure-flags'.master
parent
34d436a408
commit
2a7f4be8f3
|
@ -254,31 +254,32 @@ Interface} specification.")
|
||||||
#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 outputs #:allow-other-keys)
|
(lambda* (#:key configure-flags outputs #:allow-other-keys)
|
||||||
(let ((flags
|
(let ((flags
|
||||||
(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-pcre-jit"
|
"--with-pcre-jit"
|
||||||
"--with-debug"
|
"--with-debug"
|
||||||
;; Even when not cross-building, we pass the
|
;; Even when not cross-building, we pass the
|
||||||
;; --crossbuild option to avoid customizing for the
|
;; --crossbuild option to avoid customizing for the
|
||||||
;; kernel version on the build machine.
|
;; kernel version on the build machine.
|
||||||
,(let ((system "Linux") ; uname -s
|
,(let ((system "Linux") ; uname -s
|
||||||
(release "3.2.0") ; uname -r
|
(release "3.2.0") ; uname -r
|
||||||
;; uname -m
|
;; uname -m
|
||||||
(machine (match (or (%current-target-system)
|
(machine (match (or (%current-target-system)
|
||||||
(%current-system))
|
(%current-system))
|
||||||
("x86_64-linux" "x86_64")
|
("x86_64-linux" "x86_64")
|
||||||
("i686-linux" "i686")
|
("i686-linux" "i686")
|
||||||
("mips64el-linux" "mips64")
|
("mips64el-linux" "mips64")
|
||||||
;; Prevent errors when querying
|
;; Prevent errors when querying
|
||||||
;; this package on unsupported
|
;; this package on unsupported
|
||||||
;; platforms, e.g. when running
|
;; platforms, e.g. when running
|
||||||
;; "guix package --search="
|
;; "guix package --search="
|
||||||
(_ "UNSUPPORTED"))))
|
(_ "UNSUPPORTED"))))
|
||||||
(string-append "--crossbuild="
|
(string-append "--crossbuild="
|
||||||
system ":" release ":" machine)))))
|
system ":" release ":" machine)))
|
||||||
|
configure-flags)))
|
||||||
(setenv "CC" "gcc")
|
(setenv "CC" "gcc")
|
||||||
(format #t "configure flags: ~s~%" flags)
|
(format #t "configure flags: ~s~%" flags)
|
||||||
(apply invoke "./configure" flags)
|
(apply invoke "./configure" flags)
|
||||||
|
|
Reference in New Issue