diff mbox series

[bug#74080] gnu: Add sbcl-cacle.

Message ID 57ebe2977e743282e41b5e47cd3de06c323ea332.1730189808.git.roman@burningswell.com
State New
Headers show
Series [bug#74080] gnu: Add sbcl-cacle. | expand

Commit Message

Roman Scherer Oct. 29, 2024, 8:17 a.m. UTC
* gnu/packages/lisp-xyz.scm (sbcl-cacle): New variable.

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


base-commit: 4491dec50a97dbdebd7dd6d41a5596358b155b79

Comments

Guillaume Le Vaillant Oct. 29, 2024, 12:47 p.m. UTC | #1
Patch applied as d1aefac6f6d32243e95053e9f753e2b16bb9c628.
Thanks.
diff mbox series

Patch

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d93c67ca5d..a44ec26f32 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -2686,6 +2686,39 @@  (define-public cl-cache-while
 (define-public ecl-cache-while
   (sbcl-package->ecl-package sbcl-cache-while))
 
+(define-public sbcl-cacle
+  (let ((commit "4cbe8cfe227d2e097eaced14766f4f37aa05e617")
+        (revision "1"))
+    (package
+      (name "sbcl-cacle")
+      (version (git-version "1.0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jlahd/cacle")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0h0dk0sfkfl8g0sbrs76ydb9l4znssqhx8nc5k1sg7zxpni5a4qy"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+       (list sbcl-bordeaux-threads))
+      (home-page "https://github.com/jlahd/cacle")
+      (synopsis "Extensible cache services for Common Lisp")
+      (description "This package provides implements a generic cache management facility
+with configurable and extensible cache replacement policies.  The
+actual cached data can be stored anywhere, with cacle taking charge of
+keeping track of which entry is to be discarded next when more space
+is needed for a new entry.")
+      (license (list license:expat)))))
+
+(define-public cl-cacle
+  (sbcl-package->cl-source-package sbcl-cacle))
+
+(define-public ecl-cacle
+  (sbcl-package->ecl-package sbcl-cacle))
+
 (define-public sbcl-calispel
   (let ((commit "e9f2f9c1af97f4d7bb4c8ac25fb2a8f3e8fada7a"))
     (package