aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-06-26 02:43:01 +0200
committerMarius Bakke <marius@gnu.org>2022-06-26 12:06:31 +0200
commit87c8b4087121b133b6ca7cd140c5ffecf1391cae (patch)
treefeb49d8a7aebd32de99c0cef645a5aff984ae0e8 /gnu/packages
parent3ab568573e220def0bcfaff56b289db166fdb110 (diff)
downloadguix-87c8b4087121b133b6ca7cd140c5ffecf1391cae.tar.gz
guix-87c8b4087121b133b6ca7cd140c5ffecf1391cae.zip
gnu: nghttp2: Use G-expressions.
* gnu/packages/web.scm (nghttp2)[arguments]: Convert to gexp.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/web.scm52
1 files changed, 26 insertions, 26 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 6b34d5aa7a..8fef63a896 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7515,32 +7515,32 @@ derivation by David Revoy from the original MonsterID by Andreas Gohr.")
libxml2 ; for ‘nghttp -a’
openssl)))
(arguments
- `(#:configure-flags
- (list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib")
- "--enable-app" ; build all the tools
- "--enable-hpack-tools" ; ...all the tools
- "--disable-examples"
- "--disable-static" ; don't bother building .a files
- ,@(if (%current-target-system)
- '("--disable-python-bindings")
- '()))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'break-circular-reference
- ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
- ;; which is not allowed. Break this cycle. While we could install
- ;; only the library to ‘out’ and move everything else to a separate
- ;; output, this would inconvenience the majority of (human) users.
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "lib/libnghttp2.pc.in"
- (("@prefix@")
- (assoc-ref outputs "lib")))
- #t))
- (add-before 'check 'set-timezone-directory
- (lambda* (#:key inputs native-inputs #:allow-other-keys)
- (setenv "TZDIR" (search-input-directory
- (or native-inputs inputs)
- "share/zoneinfo")))))))
+ (list
+ #:configure-flags
+ #~(list (string-append "--libdir=" #$output:lib "/lib")
+ "--enable-app" ; build all the tools
+ "--enable-hpack-tools" ; ...all the tools
+ "--disable-examples"
+ "--disable-static" ; don't bother building .a files
+ #$@(if (%current-target-system)
+ '("--disable-python-bindings")
+ '()))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'break-circular-reference
+ ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
+ ;; which is not allowed. Break this cycle. While we could install
+ ;; only the library to ‘out’ and move everything else to a separate
+ ;; output, this would inconvenience the majority of (human) users.
+ (lambda _
+ (substitute* "lib/libnghttp2.pc.in"
+ (("@prefix@")
+ #$output:lib))))
+ (add-before 'check 'set-timezone-directory
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (setenv "TZDIR" (search-input-directory
+ (or native-inputs inputs)
+ "share/zoneinfo")))))))
(home-page "https://nghttp2.org/")
(synopsis "HTTP/2 protocol client, proxy, server, and library")
(description