From c8b91fe40480f9c403d1294c9d6cdd76d62922fc Mon Sep 17 00:00:00 2001 From: Mark Meyer Date: Sat, 16 Dec 2017 19:02:10 +0100 Subject: [PATCH] gnu: Add http2 support to curl. * gnu/packages/curl.scm (nghttp2): New variable. * gnu/packages/curl.scm (curl)[inputs]: Add nghttp2 --- gnu/packages/curl.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 49703c092..d9c34aea4 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2015 Ludovic Courtès ;;; Copyright © 2016, 2017 Leo Famulari ;;; Copyright © 2017 Marius Bakke +;;; Copyright © 2017 Mark Meyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +29,7 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages groff) #:use-module (gnu packages gsasl) @@ -39,6 +41,30 @@ #:use-module (gnu packages ssh) #:use-module (gnu packages tls)) +(define-public nghttp2 + (package + (name "nghttp2") + (version "1.28.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/nghttp2/nghttp2/releases/download/v" + version "/nghttp2-" version ".tar.xz")) + (sha256 + (base32 + "13gxk72manbmaaf3mahvihfw71zas1m7z8j2bs9s7v2dc403yv0d")))) + (build-system gnu-build-system) + (native-inputs + `(("cunit" ,cunit))) + (arguments + `(#:configure-flags '("--enable-lib-only"))) + (synopsis "This is an implementation of HTTP version 2 in C") + (description "nghttp2 is an implementation of framing layer of HTTP/2 in +reusable C library. On top of that, this library implements an HTTP/2 client, +server and proxy. HPACK encoder and decoder are available as a public API.") + (license (license:non-copyleft "file://COPYING" + "See COPYING in the distribution.")) + (home-page "https://nghttp2.org"))) + (define-public curl (package (name "curl") @@ -58,6 +84,7 @@ ("gss" ,gss) ("libidn" ,libidn) ("libssh2" ,libssh2) + ("nghttp2" ,nghttp2) ("openldap" ,openldap) ("zlib" ,zlib))) (native-inputs -- 2.15.1