Subject: [bug#49892] [PATCH] gnu: Add chicken-matchable.

From: Xinglu Chen <[email-masked]>
Date: Thu, 05 Aug 2021 17:16:13 +0200

* gnu/packages/chicken.scm (chicken-matchable): New variable.
---
 gnu/packages/chicken.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/chicken.scm b/gnu/packages/chicken.scm
index 866ba8a062..b652eb9723 100644
--- a/gnu/packages/chicken.scm
+++ b/gnu/packages/chicken.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2020 Ekaitz Zarraga <[email-masked]>
 ;;; Copyright © 2020 Evan Hanson <[email-masked]>
 ;;; Copyright © 2020 raingloom <[email-masked]>
+;;; Copyright © 2021 Xinglu Chen <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -281,3 +282,25 @@ with integers.")
      "This package provides a simple testing utility for CHICKEN Scheme.")
     (license license:bsd-3)))
 
+
+(define-public chicken-matchable
+  (package
+    (name "chicken-matchable")
+    (version "1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://code.call-cc.org/egg-tarballs/5/matchable/matchable-"
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0bizkac4a926lbk0v2m05ysq359mzhfsqh973m72jc4gcj4azr5p"))))
+    (build-system chicken-build-system)
+    (arguments `(#:egg-name "matchable"))
+    (native-inputs `(("chicken-test" ,chicken-test)))
+    (home-page "https://wiki.call-cc.org/egg/matchable")
+    (synopsis "Hygienic MATCH replacement")
+    (description "This package implements Andrew Wright's pattern matching
+macros in CHICKEN.")
+    (license license:public-domain)))

base-commit: ead6cc03c66ed31f0ab7300fab11cef3a1e459f0
-- 
2.32.0