guix_mirror_bot pushed a commit to branch r-team
in repository guix.
commit 45abdcea157e13e360d27018aa1d78d3e120828c
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 923f75acfc..d9f0583deb 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 libxml2-xpath0
(package/inherit libxml2
(name "libxml2-xpath0")