2018-11-10 15:21:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, libuuid, gobject-introspection, gtk-doc, shared-mime-info, python3, docbook_xsl, docbook_xml_dtd_43 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libxmlb-${version}";
|
2019-05-16 15:41:43 +02:00
|
|
|
version = "0.1.10";
|
2018-11-10 15:21:27 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "libxmlb";
|
|
|
|
rev = version;
|
2019-05-16 15:41:43 +02:00
|
|
|
sha256 = "1ismh3bdwd0l1fjlhwycam89faxjmpb0wxqlbv58m0z6cxykp6rd";
|
2018-11-10 15:21:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja python3 pkgconfig gobject-introspection gtk-doc shared-mime-info docbook_xsl docbook_xml_dtd_43 ];
|
|
|
|
|
|
|
|
buildInputs = [ glib libuuid ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"--libexecdir=${placeholder "out"}/libexec"
|
|
|
|
"-Dgtkdoc=true"
|
|
|
|
];
|
|
|
|
|
2019-02-16 08:40:40 +01:00
|
|
|
preCheck = ''
|
|
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:${shared-mime-info}/share
|
|
|
|
'';
|
|
|
|
|
2018-11-10 15:21:27 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to help create and query binary XML blobs";
|
|
|
|
homepage = https://github.com/hughsie/libxmlb;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2019-05-11 11:30:46 +02:00
|
|
|
platforms = platforms.linux;
|
2018-11-10 15:21:27 +01:00
|
|
|
};
|
|
|
|
}
|