gnu: Add libxml2-xpath0.

* gnu/packages/patches/libxml2-xpath0-Add-option-xpath0.patch: New file...
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/xml.scm (libxml2-xpath0): New variable.

Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
David Larsson 2021-05-15 20:52:50 +02:00 committed by Marius Bakke
parent 6f20fa3b8b
commit b58efbc661
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
3 changed files with 144 additions and 0 deletions

View file

@ -31,6 +31,7 @@
;;; Copyright © 2021 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@ -218,6 +219,19 @@ hierarchical form with variable field lengths.")
project (but it is usable outside of the Gnome platform).")
(license license:x11)))
(define-public libxml2-xpath0
(package/inherit libxml2
(name "libxml2-xpath0")
(source (origin
(inherit (package-source libxml2))
(patches (append (search-patches
"libxml2-xpath0-Add-option-xpath0.patch")
(origin-patches (package-source libxml2))))))
(description
"Libxml2-xpath0 is like libxml2 but with a patch applied that
provides an @code{--xpath0} option to @command{xmllint} that enables it
to output XPath results with a null delimiter.")))
(define-public libxlsxwriter
(package
(name "libxlsxwriter")