Subject: [bug#75285] [PATCH v2] gnu: Add xmlpatch.

From: Lars Bilke <[email-masked]>
Date: Fri, 03 Jan 2025 08:05:22 +0100

* gnu/packages/xml.scm (xmlpatch): New variable.

Change-Id: I557f2dfbaadfef11c8ca592bb03ec829782fcb4e
---
 gnu/packages/xml.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 5bbd1dd64e..a42a9e0e0d 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -2023,3 +2023,25 @@ (define-public xml-namespace-xsd
 schema language defined by the XML Schema Recommendation Second Edition of 28 October
 2004.")
     (license license:w3c)))
+
+(define-public xmlpatch
+  (package
+    (name "xmlpatch")
+    (version "0.4.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ufz/xmlpatch")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "120r0hm83nwvybjprmjaiilz5yj1qb46c9klawg61kqby6wsnaa8"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON")))
+    (inputs (list libxml2))
+    (home-page "https://xmlpatch.sourceforge.net")
+    (synopsis "XML patch library")
+    (description
+     "A C++ library for patching XML files with XPath expressions.")
+    (license license:lgpl2.1)))

base-commit: ab43d883a0a88adbcfd3c3ab8d4c097cd9054b90
-- 
2.46.1