Subject: [bug#55327] [PATCH] gnu: Add sbcl-zip.

From: Adam Kandur <[email-masked]>
Date: Mon, 9 May 2022 01:10:55 +0300

* gnu/packages/lisp-xyz.scm (sbcl-zip): New variable.
---
 gnu/packages/lisp-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 4e8e0a4bfc..0f6042c467 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -910,6 +910,43 @@ (define-public ecl-zpb-ttf
 (define-public cl-zpb-ttf
   (sbcl-package->cl-source-package sbcl-zpb-ttf))
 
+(define-public sbcl-zip
+  ;; named branch is outdated
+  (let ((commit "688b1545dd7a4fe355556768bb03f8bd9b847a87")
+        (revision "1"))
+    (package
+      (name "sbcl-zip")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+	 (method git-fetch)
+	 (uri (git-reference
+               (url "https://github.com/bluelisp/zip")
+               (commit commit)))
+	 (sha256
+	  (base32
+	   "0s08a6fq182fzsbfyvihqbdllq6gxcwkvphxnrd9wwz65dhg5y66"))
+	 (file-name (git-file-name name version))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+       `(("sbcl-salza2" ,sbcl-salza2)
+	 ("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)
+	 ("sbcl-babel" ,sbcl-babel)
+	 ("sbcl-cl-fad" ,sbcl-cl-fad)))
+      (arguments
+       ;; TODO: Tests fail because they require quicklisp to run.
+       `(#:tests? #f))
+      (synopsis "zip library written in Common Lisp")
+      (description "Library for .zip-file reading and writing, written in Common Lisp.")
+      (home-page "https://zip.common-lisp.dev")
+      (license license:expat))))
+
+(define-public ecl-zip
+  (sbcl-package->ecl-package sbcl-zpb-ttf))
+
+(define-public cl-zip
+  (sbcl-package->cl-source-package sbcl-zpb-ttf))
+
 (define-public sbcl-cl-vectors
   (package
     (name "sbcl-cl-vectors")
-- 
2.36.0