Subject: [PATCH] gnu: Add cl-sxml.

From: Foo Chuan Wei <[email-masked]>
Date: Tue, 11 Jan 2022 04:26:12 +0000

* gnu/packages/lisp-xyz.scm (cl-sxml, sbcl-cl-sxml): New variables.
---
 gnu/packages/lisp-xyz.scm | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 9100ebe0f1..797d506b6c 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -27,7 +27,7 @@
 ;;; Copyright © 2021 Cage <[email-masked]>
 ;;; Copyright © 2021 Cameron Chaparro <[email-masked]>
 ;;; Copyright © 2021 Charles Jackson <[email-masked]>
-;;; Copyright © 2021 Foo Chuan Wei <[email-masked]>
+;;; Copyright © 2021, 2022 Foo Chuan Wei <[email-masked]>
 ;;; Copyright © 2021 jgart <[email-masked]>
 ;;; Copyright © 2021 Aleksandr Vityazev <[email-masked]>
 ;;; Copyright © 2021 Jacob MacDonald <[email-masked]>
@@ -20182,6 +20182,40 @@ APL.")
 (define-public ecl-april
   (sbcl-package->ecl-package sbcl-april))
 
+(define-public sbcl-cl-sxml
+  (let ((commit "e5542b1d9bd6cee03ae27547d00660ccfbb60109")
+        (revision "1"))
+    (package
+      (name "sbcl-cl-sxml")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/eadmund/cl-sxml")
+               (commit commit)))
+         (file-name (git-file-name "cl-sxml" version))
+         (sha256
+          (base32 "1105s9whidq1lf0lli2wdhcfcs5gwzxa0h1x3izx4mp2p7psvciz"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs (list sbcl-cxml))
+      (native-inputs
+       (list sbcl-fiveam
+             sbcl-flexi-streams))
+      (home-page "https://github.com/eadmund/cl-sxml")
+      (synopsis "SXML parsing for Common Lisp")
+      (description
+       "@code{CL-SXML} implements Oleg Kiselyov’s SXML, an S-expression-based
+rendering of the XML Infoset.")
+      (license license:gpl3+))))
+
+(define-public cl-sxml
+  (sbcl-package->cl-source-package sbcl-cl-sxml))
+
+;; According to CL-SXML's README, CL-SXML "does not currently work with ECL".
+;; (define-public ecl-cl-sxml
+;;   (sbcl-package->ecl-package sbcl-cl-sxml))
+
 (define-public sbcl-cl-gopher
   (let ((commit "29fbe52e3f377e24e8bde77b00789a1e32a75b90")
         (revision "1"))

base-commit: 83abdc8371d90b6d4591a69fae5585a2a99c1627
-- 
2.25.1