From 5b974cef5460d18f61e6cbd0dfc0bd229398d1ad Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Fri, 22 May 2020 07:06:27 -0400 Subject: [PATCH 6/6] gnu: Add libxmlb. * gnu/packages/xml.scm (libxmlb): New variable. --- gnu/packages/xml.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 51ac6d44d1..ee63153f84 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -44,7 +44,10 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages curl) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) + #:use-module (gnu packages gtk) #:use-module (gnu packages java) #:use-module (gnu packages nss) #:use-module (gnu packages perl) @@ -59,11 +62,45 @@ #:use-module (guix build-system ant) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config)) +(define-public libxmlb + (package + (name "libxmlb") + (version "0.1.15") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/hughsie/libxmlb.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mb73pnfwqc4mm0lm16yfn0lj495h8hcciprb2v6wgy3ifnnjxib")))) + (build-system meson-build-system) + (arguments + `(#:glib-or-gtk? #t)) + (native-inputs + `(("gobject-introspection" ,gobject-introspection) + ("gtk-doc" ,gtk-doc) + ("pkg-config" ,pkg-config))) + (inputs + `(("appstream-glib" ,appstream-glib) + ("glib" ,glib))) + (synopsis "Library to help create and query binary XML blobs") + (description "Libxmlb library takes XML source, and converts it to a +structured binary representation with a deduplicated string table; where the +strings have the NULs included. This allows an application to mmap the binary +XML file, do an XPath query and return some strings without actually parsing +the entire document.") + (home-page "https://github.com/hughsie/libxmlb") + (license license:lgpl2.1+))) + (define-public expat (package (name "expat") -- 2.26.2