guix_mirror_bot pushed a commit to branch r-team
in repository guix.
commit a76da7095f8726db376583c894a8cc6d910311da
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Tue Nov 11 13:03:32 2025 +0100
gnu: Add libxml2-with-zlib.
* gnu/packages/xml.scm (libxml2-with-zlib): New variable.
Change-Id: I2cc59d8f0758b4caf6f35dedabc9ee66f41ca11c
---
gnu/packages/xml.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 22c27d4e23..15b315d848 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -283,6 +283,18 @@ project (but it is usable outside of the Gnome platform).")
(base32
"17w0a622466k2hi5nln276la6rzfr9xaip3lqj71hmyvxyhmf0bq")))))))
+;; We need this for r-xml, which claims to support parsing gzipped XML files.
+;; This depends on the zlib feature, which is deprecated and will be removed
+;; in future releases of libxml2.
+(define-public libxml2-with-zlib
+ (hidden-package
+ (package
+ (inherit libxml2)
+ (arguments
+ (substitute-keyword-arguments (package-arguments libxml2)
+ ((#:configure-flags flags #~'())
+ #~(cons "--with-zlib" #$flags)))))))
+
(define-public python-libxml2
(deprecated-package "python-libxml2" libxml2))