diff mbox series

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

Message ID 20220508221055.1364-1-kefironpremise@gmail.com
State New
Headers show
Series [bug#55327] gnu: Add sbcl-zip. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Adam Kandur May 8, 2022, 10:10 p.m. UTC
* gnu/packages/lisp-xyz.scm (sbcl-zip): New variable.
---
 gnu/packages/lisp-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Comments

Guillaume Le Vaillant May 9, 2022, 9:17 a.m. UTC | #1
Patch pushed as 9f9c2f200b6bb25486f6739dba08a818740e6a80 with some
simplifications (new style for inputs) and fixes (license field, wrong
variable name in definitions of cl-zip and ecl-zip).
Thanks.
diff mbox series

Patch

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")