77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, docbook_xml_dtd_43
|
|
, docbook_xsl
|
|
, glib
|
|
, gobject-introspection
|
|
, gtk-doc
|
|
, libuuid
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, python3
|
|
, shared-mime-info
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libxmlb";
|
|
version = "0.1.13";
|
|
|
|
outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hughsie";
|
|
repo = "libxmlb";
|
|
rev = version;
|
|
sha256 = "14bk7bk08mjbildak1l7jq7idcyask7384vigpq9zmwai1gax4s7";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
mesonFlags = [
|
|
"--libexecdir=${placeholder "out"}/libexec"
|
|
"-Dgtkdoc=true"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
];
|
|
|
|
preCheck = ''
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:${shared-mime-info}/share
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
tests = {
|
|
installed-tests = nixosTests.libxmlb;
|
|
};
|
|
};
|
|
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|