2019-08-23 00:31:27 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, docbook_xsl
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, libuuid
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, shared-mime-info
|
2019-08-23 01:34:48 +02:00
|
|
|
, nixosTests
|
2019-08-23 00:31:27 +02:00
|
|
|
}:
|
2018-11-10 15:21:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-23 00:31:27 +02:00
|
|
|
pname = "libxmlb";
|
2019-10-20 02:02:19 +02:00
|
|
|
version = "0.1.13";
|
2018-11-10 15:21:27 +01:00
|
|
|
|
2019-08-23 00:31:27 +02:00
|
|
|
outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ];
|
2018-11-10 15:21:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "libxmlb";
|
|
|
|
rev = version;
|
2019-10-20 02:02:19 +02:00
|
|
|
sha256 = "14bk7bk08mjbildak1l7jq7idcyask7384vigpq9zmwai1gax4s7";
|
2018-11-10 15:21:27 +01:00
|
|
|
};
|
|
|
|
|
2019-08-23 00:31:27 +02:00
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
(python3.withPackages (pkgs: with pkgs; [ setuptools ]))
|
|
|
|
shared-mime-info
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libuuid
|
|
|
|
];
|
2018-11-10 15:21:27 +01:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"--libexecdir=${placeholder "out"}/libexec"
|
|
|
|
"-Dgtkdoc=true"
|
2019-08-23 00:31:27 +02:00
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
2018-11-10 15:21:27 +01:00
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
|
2019-08-23 01:34:48 +02:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
installed-tests = nixosTests.libxmlb;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-11-10 15:21:27 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|