Merge pull request #197703 from ncfavier/xmlto-w3m

xmlto: add w3m to wrapped PATH
This commit is contained in:
Jörg Thalheim 2022-10-25 13:23:55 +02:00 committed by GitHub
commit 60e9179e56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = {