12 , withDblatex ? false, dblatex
15 python3.pkgs.buildPythonApplication rec {
23 src = fetchFromGitLab {
24 domain = "gitlab.gnome.org";
28 sha256 = "A6OXpazrJ05SUIO1ZPVN0xHTXOSov8UnPvUolZAv/Iw=";
32 passthru.respect_xml_catalog_files_var_patch
36 substituteInPlace meson.build \
37 --replace "pkg-config" "$PKG_CONFIG"
52 libxslt # for xsltproc
59 ] ++ lib.optionals withDblatex [
63 pythonPath = with python3.pkgs; [
64 pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
73 doCheck = false; # requires a lot of stuff
74 doInstallCheck = false; # fails
77 # Do not propagate Python
78 substituteInPlace $out/nix-support/propagated-build-inputs \
79 --replace "${python3}" ""
83 # Consumers are expected to copy the m4 files to their source tree, let them reuse the patch
84 respect_xml_catalog_files_var_patch = ./respect-xml-catalog-files-var.patch;
85 updateScript = gnome.updateScript {
87 versionPolicy = "none";
92 description = "Tools to extract documentation embedded in GTK and GNOME source code";
93 homepage = "https://gitlab.gnome.org/GNOME/gtk-doc";
94 license = licenses.gpl2Plus;
95 maintainers = teams.gnome.members ++ (with maintainers; [ pSub ]);