aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2022-06-30 14:52:21 +0200
committerPierre Neidhardt <mail@ambrevar.xyz>2022-06-30 20:01:36 +0200
commit6a65f1615c75b32c327c135bd3e997237d31951d (patch)
treefec2a36f7f922304c68deaacc67e968d0d862dcb
parent5eaf30669970566544e9684156b912341270e71a (diff)
downloadguix-6a65f1615c75b32c327c135bd3e997237d31951d.tar
guix-6a65f1615c75b32c327c135bd3e997237d31951d.tar.gz
gnu: Add cl-algebraic-data-type.
* gnu/packages/lisp-xyz.scm (cl-algebraic-data-type, ecl-cl-algebraic-data-type, sbcl-cl-algebraic-data-type): New variables.
-rw-r--r--gnu/packages/lisp-xyz.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 04d743e7b7..2b9dd0b086 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -21602,3 +21602,37 @@ formulas.")
(define-public ecl-cells
(sbcl-package->ecl-package sbcl-cells))
+
+(define-public sbcl-cl-algebraic-data-type
+ (let ((commit "b2568428193a512d141d6b615772d50ceb5f9bca"))
+ (package
+ (name "sbcl-cl-algebraic-data-type")
+ (version (git-version "1.2.0" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/stylewarning/cl-algebraic-data-type")
+ (commit commit)))
+ (file-name (git-file-name "cl-algebraic-data-type" version))
+ (sha256
+ (base32 "1lnqxcv8pd5z8n0g5p2l0dbljx9pqiv18hxl0vhsh7ldhkrjv2jx"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-alexandria
+ sbcl-global-vars))
+ (arguments
+ '(#:tests? #f)) ; No tests.
+ (home-page "https://github.com/stylewarning/cl-algebraic-data-type")
+ (synopsis "Common Lisp library for algebraic data types")
+ (description
+ "CL-ALGEBRAIC-DATA-TYPE, or ADT, is a library for defining algebraic
+data types in a similar spirit to Haskell or Standard ML, as well as for
+operating on them.")
+ (license license:bsd-3))))
+
+(define-public cl-algebraic-data-type
+ (sbcl-package->cl-source-package sbcl-cl-algebraic-data-type))
+
+(define-public ecl-algebraic-data-type
+ (sbcl-package->ecl-package sbcl-cl-algebraic-data-type))