Subject: [bug#73198] [PATCH 1/3] gnu: Add cl-anypool

From: Konrad Hinsen <[email-masked]>
Date: Thu, 12 Sep 2024 16:05:26 +0200

* gnu/packages/lisp-xyz.scm (sbcl-anypool cl-anypool ecl-anypool): New variables.

Change-Id: Ia9cf43dc6f7a529e1a3df96360d06ddc6357a480
---
 gnu/packages/lisp-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 2bd7d18202..fcc2e2ad63 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -1163,6 +1163,42 @@ (define-public sbcl-antik
 (define-public cl-antik
   (sbcl-package->cl-source-package sbcl-antik))
 
+(define-public sbcl-anypool
+  (let ((commit "5389ec945882e87f2fc1d3e852c91aaf176556e5")
+        (revision "1"))
+    (package
+      (name "sbcl-anypool")
+      (version (git-version "0.1.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/fukamachi/anypool")
+               (commit commit)))
+         (file-name (git-file-name "anypool" version))
+         (sha256
+          (base32 "1ffssc5fzh7gj0z94xxfb3mk5cwja65lrhxyfgib15a6yxqf1kk1"))))
+      (build-system asdf-build-system/sbcl)
+      (native-inputs
+       (list sbcl-rove))
+      (inputs
+       (list sbcl-bordeaux-threads
+             sbcl-cl-speedy-queue))
+      (arguments
+       '(#:asd-systems '("anypool"
+                         "anypool/middleware")))
+      (home-page "https://github.com/fukamachi/anypool")
+      (synopsis "General-purpose connection pooling library")
+      (description
+       "General-purpose connection pooling library for Common Lisp")
+      (license license:bsd-2))))
+
+(define-public cl-anypool
+  (sbcl-package->cl-source-package sbcl-anypool))
+
+(define-public ecl-anypool
+  (sbcl-package->ecl-package sbcl-anypool))
+
 (define-public sbcl-april
   (let ((commit "bdd74f168ec82f28fe4ab692f2c0af39441a5701")
         (revision "3"))
-- 
2.45.2