Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libxmlb / default.nix
blob2a1f0941f4dba3094e336f76f85d2fa5dcf1eb34
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , docbook_xml_dtd_43
5 , docbook-xsl-nons
6 , glib
7 , gobject-introspection
8 , gtk-doc
9 , meson
10 , ninja
11 , pkg-config
12 , python3
13 , shared-mime-info
14 , nixosTests
15 , xz
18 stdenv.mkDerivation rec {
19   pname = "libxmlb";
20   version = "0.3.10";
22   outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ];
24   src = fetchFromGitHub {
25     owner = "hughsie";
26     repo = "libxmlb";
27     rev = version;
28     sha256 = "sha256-uitnVqR2VVNAf8H1Q/u6LezhvfQJ/G2bE0Dv9dyP8+A=";
29   };
31   patches = [
32     ./installed-tests-path.patch
33   ];
35   nativeBuildInputs = [
36     docbook_xml_dtd_43
37     docbook-xsl-nons
38     gobject-introspection
39     gtk-doc
40     meson
41     ninja
42     pkg-config
43     python3
44     shared-mime-info
45   ];
47   buildInputs = [
48     glib
49     xz
50   ];
52   mesonFlags = [
53     "--libexecdir=${placeholder "out"}/libexec"
54     "-Dgtkdoc=true"
55     "-Dinstalled_test_prefix=${placeholder "installedTests"}"
56   ];
58   preCheck = ''
59     export XDG_DATA_DIRS=$XDG_DATA_DIRS:${shared-mime-info}/share
60   '';
62   doCheck = true;
64   passthru = {
65     tests = {
66       installed-tests = nixosTests.installed-tests.libxmlb;
67     };
68   };
70   meta = with lib; {
71     description = "A library to help create and query binary XML blobs";
72     homepage = "https://github.com/hughsie/libxmlb";
73     license = licenses.lgpl21Plus;
74     maintainers = with maintainers; [ ];
75     platforms = platforms.unix;
76   };