summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-01-04 23:22:29 +0100
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-01-06 11:56:01 +0100
commitd8369edfcda8bc253694e70b4d164c15525dbbc8 (patch)
treeb2953e73db51d121def783bf2be1c2706b077de7 /pkgs/data
parent981b94442b1d65b6b281d3d7e49a9bf7502256ce (diff)
downloadnixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.tar
nixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.tar.gz
nixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.tar.bz2
nixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.tar.lz
nixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.tar.xz
nixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.tar.zst
nixpkgs-d8369edfcda8bc253694e70b4d164c15525dbbc8.zip
docbook-xsl: Fix reproducibility when building docs
When building docs generate.consistent.ids was not respected for indexes.

https://github.com/docbook/xslt10-stylesheets/pull/88
https://sourceforge.net/p/docbook/bugs/1385/

This lead to r13y failures in udisks2.devdoc.
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix b/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix
index 5297d5dbd5d..8aa1f0b6330 100644
--- a/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix
+++ b/pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix
@@ -22,6 +22,15 @@ let
           stripLen = "1";
         })
 
+        # Fix reproducibility by respecting generate.consistent.ids in indexes
+        # https://github.com/docbook/xslt10-stylesheets/pull/88
+        # https://sourceforge.net/p/docbook/bugs/1385/
+        (fetchpatch {
+          url = "https://github.com/docbook/xslt10-stylesheets/commit/07631601e6602bc49b8eac3aab9d2b35968d3e7a.patch";
+          sha256 = "0igfhcr6hzcydqsnjsd181h5yl3drjnrwdmxcybr236m8255vkq3";
+          stripLen = "1";
+        })
+
         # Add legacy sourceforge.net URIs to the catalog
         (substituteAll {
           src = ./catalog-legacy-uris.patch;