Archived
1
0
Fork 0

gnu: nghttp2: Use G-expressions.

* gnu/packages/web.scm (nghttp2)[arguments]: Convert to gexp.
This commit is contained in:
Marius Bakke 2022-06-26 02:43:01 +02:00
parent 3ab568573e
commit 87c8b40871
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -7515,27 +7515,27 @@ derivation by David Revoy from the original MonsterID by Andreas Gohr.")
libxml2 ; for nghttp -a libxml2 ; for nghttp -a
openssl))) openssl)))
(arguments (arguments
`(#:configure-flags (list
(list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib") #:configure-flags
#~(list (string-append "--libdir=" #$output:lib "/lib")
"--enable-app" ; build all the tools "--enable-app" ; build all the tools
"--enable-hpack-tools" ; ...all the tools "--enable-hpack-tools" ; ...all the tools
"--disable-examples" "--disable-examples"
"--disable-static" ; don't bother building .a files "--disable-static" ; don't bother building .a files
,@(if (%current-target-system) #$@(if (%current-target-system)
'("--disable-python-bindings") '("--disable-python-bindings")
'())) '()))
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'break-circular-reference (add-after 'unpack 'break-circular-reference
;; libnghttp2.pc by default retains a reference to the out output, ;; libnghttp2.pc by default retains a reference to the out output,
;; which is not allowed. Break this cycle. While we could install ;; which is not allowed. Break this cycle. While we could install
;; only the library to out and move everything else to a separate ;; only the library to out and move everything else to a separate
;; output, this would inconvenience the majority of (human) users. ;; output, this would inconvenience the majority of (human) users.
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(substitute* "lib/libnghttp2.pc.in" (substitute* "lib/libnghttp2.pc.in"
(("@prefix@") (("@prefix@")
(assoc-ref outputs "lib"))) #$output:lib))))
#t))
(add-before 'check 'set-timezone-directory (add-before 'check 'set-timezone-directory
(lambda* (#:key inputs native-inputs #:allow-other-keys) (lambda* (#:key inputs native-inputs #:allow-other-keys)
(setenv "TZDIR" (search-input-directory (setenv "TZDIR" (search-input-directory