about summary refs log tree commit diff
path: root/pkgs/development/tools/documentation
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-12-02 04:10:47 +0100
committerJan Tojnar <jtojnar@gmail.com>2017-12-02 20:34:29 +0100
commita6cd26740baae696115a7b501b6bf449321acebd (patch)
tree19531899385b2c31836b1dc721b6356e6ee00d1f /pkgs/development/tools/documentation
parentd95052a89633d19b42940e1945a84a1e7192fbca (diff)
downloadnixlib-a6cd26740baae696115a7b501b6bf449321acebd.tar
nixlib-a6cd26740baae696115a7b501b6bf449321acebd.tar.gz
nixlib-a6cd26740baae696115a7b501b6bf449321acebd.tar.bz2
nixlib-a6cd26740baae696115a7b501b6bf449321acebd.tar.lz
nixlib-a6cd26740baae696115a7b501b6bf449321acebd.tar.xz
nixlib-a6cd26740baae696115a7b501b6bf449321acebd.tar.zst
nixlib-a6cd26740baae696115a7b501b6bf449321acebd.zip
gtk_doc: propagate the respect-xml-catalog-files-var.patch
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.
Diffstat (limited to 'pkgs/development/tools/documentation')
-rw-r--r--pkgs/development/tools/documentation/gtk-doc/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/tools/documentation/gtk-doc/default.nix b/pkgs/development/tools/documentation/gtk-doc/default.nix
index 5f31a2dfb7c6..b88b8e3c82a9 100644
--- a/pkgs/development/tools/documentation/gtk-doc/default.nix
+++ b/pkgs/development/tools/documentation/gtk-doc/default.nix
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
   };
 
   patches = [
-    ./respect-xml-catalog-files-var.patch
+    passthru.respect_xml_catalog_files_var_patch
   ];
 
   outputDevdoc = "out";
@@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
 
   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";