a6cd26740b
We are patching the xmlcatalog calls in the JH_CHECK_XML_CATALOG macro to use the XML_CATALOG_FILES environment variable instead of a single central catalog file. Since consumers (libraries or applications) are expected to copy the m4 files to their source tree, we need to patch them separately. The files should be identical, though, so we can reuse the patch for gtk_doc. This commit makes the patch available in passthru so the consumer expressions do not need to maintain the long relative path.
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, perl, python, libxml2Python, libxslt, which
|
|
, docbook_xml_dtd_43, docbook_xsl, gnome_doc_utils, dblatex, gettext, itstool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gtk-doc-${version}";
|
|
version = "1.25";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gtk-doc/${version}/${name}.tar.xz";
|
|
sha256 = "0hpxcij9xx9ny3gs9p0iz4r8zslw8wqymbyababiyl7603a6x90y";
|
|
};
|
|
|
|
patches = [
|
|
passthru.respect_xml_catalog_files_var_patch
|
|
];
|
|
|
|
outputDevdoc = "out";
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs =
|
|
[ pkgconfig perl python libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
|
|
gnome_doc_utils dblatex gettext which itstool
|
|
];
|
|
|
|
configureFlags = "--disable-scrollkeeper";
|
|
|
|
passthru = {
|
|
# Consumers are expected to copy the m4 files to their source tree, let them reuse the patch
|
|
respect_xml_catalog_files_var_patch = ./respect-xml-catalog-files-var.patch;
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.gtk.org/gtk-doc;
|
|
description = "Tools to extract documentation embedded in GTK+ and GNOME source code";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|