From 57ea20615fc0b32ccab0f986a6f483cec124e198 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 29 Aug 2024 13:14:47 +0100 Subject: Use http-parser from Guix. * slurm.scm: Import http-parser from (gnu packages web). (http-parser): Delete variable. --- slurm.scm | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/slurm.scm b/slurm.scm index a46e161..1158b1e 100644 --- a/slurm.scm +++ b/slurm.scm @@ -11,7 +11,7 @@ ((gnu packages pkg-config) #:select (pkg-config)) ((gnu packages serialization) #:select (libyaml)) ((gnu packages tls) #:select (openssl)) - ((gnu packages web) #:select (jansson json-c)) + ((gnu packages web) #:select (http-parser jansson json-c)) (guix download) (guix build-system gnu) (guix gexp) @@ -20,40 +20,6 @@ (guix packages) (guix utils)) -(define-public http-parser - (package - (name "http-parser") - (version "2.9.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/nodejs/http-parser") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1vda4dp75pjf5fcph73sy0ifm3xrssrmf927qd1x8g3q46z0cv6c")))) - (build-system gnu-build-system) - (arguments - (list #:make-flags #~(list (string-append "PREFIX=" #$output) - (string-append "CC=" #$(cc-for-target)) - "library") - #:test-target "test" - #:phases - #~(modify-phases %standard-phases - (delete 'configure)))) - (home-page "https://github.com/nodejs/http-parser") - (synopsis "C HTTP request/response parser") - (description "@code{http-parser} 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 license:expat))) - (define-public libjwt (package (name "libjwt") -- cgit v1.2.3