xmlto: use docbook-xml-ns package XSD files (offline mode)

This commit is contained in:
Anthony Roussel 2024-04-04 20:42:36 +02:00
parent 8c0390a354
commit c1ae842f7c
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,11 +1,16 @@
{
bash,
coreutils,
docbook_xml_dtd_45,
docbook_xsl,
docbook-xsl-ns,
fetchpatch,
fetchurl,
findutils,
flex,
getopt,
gnugrep,
gnused,
lib,
libxml2,
libxslt,
@ -41,11 +46,18 @@ stdenv.mkDerivation rec {
patchShebangs xmlif/test/run-test
substituteInPlace "xmlto.in" \
--replace "/bin/bash" "${bash}/bin/bash"
substituteInPlace "xmlto.in" \
--replace "/usr/bin/locale" "$(type -P locale)"
substituteInPlace "xmlto.in" \
--replace "mktemp" "$(type -P mktemp)"
--replace-fail "@BASH@" "${bash}/bin/bash" \
--replace-fail "@FIND@" "${findutils}/bin/find" \
--replace-fail "@GETOPT@" "${getopt}/bin/getopt" \
--replace-fail "@GREP@" "${gnugrep}/bin/grep" \
--replace-fail "@MKTEMP@" "$(type -P mktemp)" \
--replace-fail "@SED@" "${gnused}/bin/sed" \
--replace-fail "@TAIL@" "${coreutils}/bin/tail"
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"
done
'';
# `libxml2' provides `xmllint', needed at build-time and run-time.