xmlto: Use non-namespaced stylesheets

c1ae842f7c changed `xmlto` to use docbook stylesheets from the nix store instead of downloading them. However, it used the namespaced version despite the URI being for non-namespaced version, causing problems with generated man pages as reported in https://github.com/NixOS/nixpkgs/pull/301631#issuecomment-2132169659, https://github.com/NixOS/nixpkgs/issues/299081#issuecomment-2266028957, and https://github.com/NixOS/nixpkgs/issues/339078.

This patch fixes the issue by pointing to `nons` version of the stylesheets.
This commit is contained in:
Marcin Serwin 2024-10-03 08:41:35 +02:00 committed by GitHub
parent cbf172fff8
commit 6d24a9cf83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@
coreutils,
docbook_xml_dtd_45,
docbook_xsl,
docbook-xsl-ns,
docbook-xsl-nons,
fetchgit,
findutils,
flex,
@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
for f in format/docbook/* xmlto.in; do
substituteInPlace $f \
--replace-fail "http://docbook.sourceforge.net/release/xsl/current" "${docbook-xsl-ns}/xml/xsl/docbook"
--replace-fail "http://docbook.sourceforge.net/release/xsl/current" "${docbook-xsl-nons}/xml/xsl/docbook"
done
'';