3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libxmlb/default.nix

75 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, docbook_xml_dtd_43
, docbook_xsl
, glib
, gobject-introspection
, gtk-doc
, meson
, ninja
, pkgconfig
, python3
, shared-mime-info
2019-08-23 00:34:48 +01:00
, nixosTests
}:
2018-11-10 14:21:27 +00:00
stdenv.mkDerivation rec {
pname = "libxmlb";
2020-03-06 20:23:24 +00:00
version = "0.1.15";
2018-11-10 14:21:27 +00:00
outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ];
2018-11-10 14:21:27 +00:00
src = fetchFromGitHub {
owner = "hughsie";
repo = "libxmlb";
rev = version;
2020-03-06 20:23:24 +00:00
sha256 = "1mb73pnfwqc4mm0lm16yfn0lj495h8hcciprb2v6wgy3ifnnjxib";
2018-11-10 14:21:27 +00: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
];
2018-11-10 14:21:27 +00:00
mesonFlags = [
"--libexecdir=${placeholder "out"}/libexec"
"-Dgtkdoc=true"
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
2018-11-10 14:21:27 +00:00
];
preCheck = ''
export XDG_DATA_DIRS=$XDG_DATA_DIRS:${shared-mime-info}/share
'';
2018-11-10 14:21:27 +00:00
doCheck = true;
2019-08-23 00:34:48 +01:00
passthru = {
tests = {
2019-11-07 13:38:08 +00:00
installed-tests = nixosTests.installed-tests.libxmlb;
2019-08-23 00:34:48 +01:00
};
};
2018-11-10 14:21:27 +00:00
meta = with stdenv.lib; {
description = "A library to help create and query binary XML blobs";
2020-03-06 20:23:24 +00:00
homepage = "https://github.com/hughsie/libxmlb";
2018-11-10 14:21:27 +00:00
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
2018-11-10 14:21:27 +00:00
};
}