From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAGZZ-0002ci-BW for guix-patches@gnu.org; Mon, 15 May 2017 10:02:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAGZW-0001ex-91 for guix-patches@gnu.org; Mon, 15 May 2017 10:02:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAGZW-0001en-5d for guix-patches@gnu.org; Mon, 15 May 2017 10:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dAGZV-00070L-UB for guix-patches@gnu.org; Mon, 15 May 2017 10:02:01 -0400 Subject: bug#26940: [PATCH 1/3] gnu: Add http-parser. References: <87fug6w7ba.fsf@elephly.net> In-Reply-To: <87fug6w7ba.fsf@elephly.net> Resent-Message-ID: From: Ricardo Wurmus Date: Mon, 15 May 2017 16:01:20 +0200 Message-Id: <20170515140122.26545-1-rekado@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26940@debbugs.gnu.org Cc: Ricardo Wurmus From: Ricardo Wurmus * gnu/packages/web.scm (http-parser): New variable. --- gnu/packages/web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index efaa1b574..20cf0ab95 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4552,3 +4552,35 @@ into your tests. It automatically starts up a HTTP server in a separate thread (define-public python2-pytest-httpbin (package-with-python2 python-pytest-httpbin)) + +(define-public http-parser + (package + (name "http-parser") + (version "2.7.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/nodejs/http-parser/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1cw6nf8xy4jhib1w0jd2y0gpqjbdasg8b7pkl2k2vpp54k9rlh3h")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:make-flags + (list (string-append "PREFIX=" + (assoc-ref %outputs "out")) + "CC=gcc" "library") + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (home-page "https://github.com/nodejs/http-parser") + (synopsis "HTTP request/response parser for C") + (description "This is a parser for HTTP messages written in C. It parses +both requests and responses. The parser is designed to be used in performance +HTTP applications. It does not make any syscalls nor allocations, it does not +buffer data, it can be interrupted at anytime. Depending on your architecture, +it only requires about 40 bytes of data per message stream (in a web server +that is per connection).") + (license l:expat))) -- 2.11.1