Subject: [bug#59297] [PATCH] gnu: Add cl-closure-template.

From: jgart <[email-masked]>
Date: Tue, 15 Nov 2022 21:57:32 -0600

* gnu/packages/lisp-xyz.scm (cl-closure-template, ecl-closure-template,
sbcl-closure-template): New variables.
---
 gnu/packages/lisp-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index f23b4a70bb..8904eb7c8b 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -24131,6 +24131,44 @@ (define-public cl-draw-cons-tree
 (define-public ecl-draw-cons-tree
   (sbcl-package->ecl-package sbcl-draw-cons-tree))
 
+(define-public sbcl-closure-template
+  ;; There are no releases since 2015.
+  (let ((commit "f1983aa525045691e128027d2a2d74831c873d6e")
+        (revision "0"))
+  (package
+   (name "sbcl-closure-template")
+   (version (git-version "0.2.1" revision commit))
+   (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/archimag/cl-closure-template")
+             (commit commit)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "16h0fs6bjjd4n9pbkwcprpgyj26vsw2akk3q08m7xmsmqi05dppv"))))
+   (build-system asdf-build-system/sbcl)
+   (native-inputs (list sbcl-lift))
+   (inputs
+     (list sbcl-babel
+           sbcl-parse-number
+           sbcl-esrap
+           sbcl-iterate
+           sbcl-closer-mop
+           sbcl-split-sequence
+           sbcl-alexandria))
+   (synopsis "Lisp implementation of Google Closure Templates")
+   (description
+"Common Lisp implementation of Google Closure Templates.")
+   (home-page "https://github.com/archimag/cl-closure-template/")
+   (license license:gpl2+))))
+
+(define-public cl-closure-template
+  (sbcl-package->cl-source-package sbcl-closure-template))
+
+(define-public ecl-closure-template
+  (sbcl-package->ecl-package sbcl-closure-template))
+
 (define-public sbcl-cl-morse
   (package
     (name "sbcl-cl-morse")
-- 
2.38.1