From a77f4fb279b96f2707b475531b60ca36417bde69 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 11 Nov 2025 13:03:32 +0100 Subject: [PATCH] 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 4315389e2f4ce12f01a2aa0d29a6816303497def..f5552c1352994d7a11aeba39163bbe00440afdae 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-deprecated-package python-libxml2 libxml2)