aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-08-29 13:14:47 +0100
committerArun Isaac2024-08-29 13:18:15 +0100
commit57ea20615fc0b32ccab0f986a6f483cec124e198 (patch)
tree2341b460aca79b018769228efb6f7eda62a0efdc
parentedbc17e40b27737b215d54b492cc82a781ad42dd (diff)
downloadgn-machines-57ea20615fc0b32ccab0f986a6f483cec124e198.tar.gz
Use http-parser from Guix.
* slurm.scm: Import http-parser from (gnu packages web). (http-parser): Delete variable.
-rw-r--r--slurm.scm36
1 files changed, 1 insertions, 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")