Subject: [PATCH v2 08/12] gnu: Add cl-permutation

From: Michal Atlas <[email-masked]>
Date: Fri, 24 Nov 2023 17:07:13 +0000

* gnu/packages/lisp-xyz.scm (sbcl-cl-permutation, ecl-cl-permutation,
cl-permutation): New variables.

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

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 2c82e188af..666ee46474 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20647,6 +20647,42 @@ (define-public ecl-cl-messagepack
 (define-public cl-messagepack
   (sbcl-package->cl-source-package sbcl-cl-messagepack))
 
+(define-public sbcl-cl-permutation
+  (let ((commit "20c10e9ca56452d2fafc3ec0984dcdf78b4f4b19")
+        (revision "0"))
+    (package
+      (name "sbcl-cl-permutation")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/stylewarning/cl-permutation")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0i932g0k50y24hxizni6zfya4kcw77yk3b0llivm9g50s7fxj9dk"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs (list sbcl-alexandria
+                    sbcl-iterate
+                    sbcl-cl-algebraic-data-type
+                    sbcl-closer-mop
+                    sbcl-bordeaux-fft
+                    sbcl-priority-queue
+                    sbcl-cl-cont
+                    sbcl-fiasco))
+      (synopsis "Permutations and permutation groups in Common Lisp")
+      (description
+       "A library for operating on permutations and permutation groups")
+      (home-page "https://github.com/stylewarning/cl-permutation")
+      (license license:bsd-3))))
+
+(define-public ecl-cl-permutation
+  (sbcl-package->ecl-package sbcl-cl-permutation))
+
+(define-public cl-permutation
+  (sbcl-package->cl-source-package sbcl-cl-permutation))
+
 (define-public sbcl-messagebox
   (let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
         (revision "1"))
-- 
2.41.0