From 05c8f4a443ad62c013aa5e18b46979b985737dac Mon Sep 17 00:00:00 2001 From: Mark Meyer Date: Sat, 16 Dec 2017 19:02:10 +0100 Subject: [PATCH] gnu: Add nghttp2 support. * gnu/packages/curl.scm (nghttp2): New variable. --- gnu/packages/curl.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 3df8acc2c..741454978 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2016, 2017 Leo Famulari ;;; Copyright © 2017 Marius Bakke ;;; Copyright © 2017 Efraim Flashner +;;; Copyright © 2017 Mark Meyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,6 +30,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) @@ -40,6 +42,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") -- 2.15.1