xmlto: add w3m to wrapped PATH

The old method doesn't work any more.
This commit is contained in:
Naïm Favier 2022-10-25 11:41:36 +02:00
parent dd2351ee2f
commit 37d485e3f4
No known key found for this signature in database
GPG key ID: 95AFCE8211908325

View file

@ -27,12 +27,9 @@ stdenv.mkDerivation rec {
buildInputs = [ libxml2 libxslt docbook_xml_dtd_45 docbook_xsl ];
postInstall = ''
wrapProgram "$out/bin/xmlto" \
--prefix PATH : "${lib.makeBinPath [ libxslt libxml2 getopt ]}"
# `w3m' is needed for HTML to text conversions.
substituteInPlace "$out/share/xmlto/format/docbook/txt" \
--replace "/usr/bin/w3m" "${w3m}/bin/w3m"
wrapProgram "$out/bin/xmlto" \
--prefix PATH : "${lib.makeBinPath [ libxslt libxml2 getopt w3m ]}"
'';
meta = {