depot/third_party/nixpkgs/pkgs/development/libraries/libxmlb/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

77 lines
1.4 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, docbook_xml_dtd_43
, docbook-xsl-nons
, glib
, gobject-introspection
, gtk-doc
, meson
, ninja
, pkg-config
, python3
, shared-mime-info
, nixosTests
, xz
}:
stdenv.mkDerivation rec {
pname = "libxmlb";
version = "0.3.10";
outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ];
src = fetchFromGitHub {
owner = "hughsie";
repo = "libxmlb";
rev = version;
sha256 = "sha256-uitnVqR2VVNAf8H1Q/u6LezhvfQJ/G2bE0Dv9dyP8+A=";
};
patches = [
./installed-tests-path.patch
];
nativeBuildInputs = [
docbook_xml_dtd_43
docbook-xsl-nons
gobject-introspection
gtk-doc
meson
ninja
pkg-config
python3
shared-mime-info
];
buildInputs = [
glib
xz
];
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.installed-tests.libxmlb;
};
};
meta = with lib; {
description = "A library to help create and query binary XML blobs";
homepage = "https://github.com/hughsie/libxmlb";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
};
}