diff mbox series

[bug#72463,10/10] gnu: Add http-kit.

Message ID 7d64c6dc2ded371daf5d01c09de856835c1fd3f7.1722782570.git.roman@burningswell.com
State New
Headers show
Series Add Clojure Core packages and HTTPkit | expand

Commit Message

Roman Scherer Aug. 5, 2024, 5:16 a.m. UTC
* gnu/packages/clojure.scm (http-kit): New variable.
---
 gnu/packages/clojure.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index d09af801d0..ed2714a87a 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -992,3 +992,28 @@  (define-public clojure-tools-reader
 provided by the Clojure Core reader and more.  It adds metadata such as column
 and line numbers not only to lists, but also to symbols, vectors and maps.")
     (license license:epl1.0)))
+
+(define-public http-kit
+  (package
+    (name "http-kit")
+    (version "2.8.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/http-kit/http-kit")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1361bpb4sn3dbp215s7gf1bcrb45lgx3lk6lix7bndw9lahr5ank"))))
+    (build-system clojure-build-system)
+    (arguments
+     '(#:java-source-dirs '("src/java")
+       #:source-dirs '("src")
+       #:doc-dirs '()
+       #:tests? #f))  ;; Too many unpackaged dependencies
+    (synopsis "Simple, high-performance event-driven HTTP client and server for Clojure")
+    (description "Minimalist, event-driven, high-performance Clojure HTTP
+client and server library with WebSocket and asynchronous support.")
+    (home-page "https://github.com/http-kit/http-kit")
+    (license license:asl2.0)))