From 4de27bd44d9537c25d1cb914c04aef8402c67037 Mon Sep 17 00:00:00 2001 From: jgart Date: Wed, 26 Jan 2022 03:33:18 -0500 Subject: gn: packages: lisp: Add cl-fare-memoization. --- gn/packages/lisp.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gn') diff --git a/gn/packages/lisp.scm b/gn/packages/lisp.scm index 6e0b8b2..7abffc9 100644 --- a/gn/packages/lisp.scm +++ b/gn/packages/lisp.scm @@ -196,3 +196,40 @@ fringilla labore. Tellus penatibus arcu ligula nisi.") (define-public ecl-lorem-ipsum (sbcl-package->ecl-package sbcl-lorem-ipsum)) +(define-public sbcl-fare-memoization + (let ((commit "8b43ac6bcc0057d1a92052e39b6d34c05c2eb7e4") + (revision "0")) + (package + (name "sbcl-fare-memoization") + (version "0.4.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.common-lisp.net/frideau/fare-memoization") + (commit commit))) + (sha256 + (base32 "1blmrb4c9gsxj87scz74z1s8w9d1w2r48fyxj0y1sw3vr6bsbb8f")) + (file-name (git-file-name name commit)))) + (build-system asdf-build-system/sbcl) + (arguments + `(#:asd-files '("fare-memoization.asd"))) + (native-inputs + (list sbcl-hu.dwim.stefil)) + (inputs + (list sbcl-named-readtables)) + (home-page "https://gitlab.common-lisp.net/frideau/fare-memoization") + (synopsis "Memoization library for common-lisp") + (description +"The @code{fare-memoization} library builds on an age-old idea: +dynamically memoizing Lisp functions. A memoized function remembers +results from previous computations, and returns cached results when called +with the same arguments again, rather than re-doing the computation.") + (license license:expat)))) + +(define-public cl-fare-memoization + (sbcl-package->cl-source-package sbcl-fare-memoization)) + +(define-public ecl-fare-memoization + (sbcl-package->ecl-package sbcl-fare-memoization)) + -- cgit v1.2.3