asciidocFull: add missing sed + coreutils for a2x wrapper

When making a PDF file I got an error because dblatex couldn't find
sed/uname/mkdir etc. This fixes it.
This commit is contained in:
Bjørn Forsman 2013-10-08 14:09:18 +02:00
parent 2066508131
commit 661e5a8f1a

View File

@ -19,6 +19,8 @@
, fop ? null , fop ? null
# TODO: Package this: # TODO: Package this:
#, epubcheck ? null #, epubcheck ? null
, gnused ? null
, coreutils ? null
, unzip ? null , unzip ? null
# filters # filters
@ -49,9 +51,11 @@ assert enableStandardFeatures ->
docbook_xml_dtd_45 != null && docbook_xml_dtd_45 != null &&
docbook5_xsl != null && docbook5_xsl != null &&
docbook_xsl != null && docbook_xsl != null &&
fop != null; fop != null &&
# TODO: Package this: # TODO: Package this:
# epubcheck != null; # epubcheck != null &&
gnused != null &&
coreutils != null;
# filters # filters
assert (enableDitaaFilter || enableMscgenFilter || enableDiagFilter || enableQrcodeFilter || enableAafigureFilter) -> unzip != null; assert (enableDitaaFilter || enableMscgenFilter || enableDiagFilter || enableQrcodeFilter || enableAafigureFilter) -> unzip != null;
@ -218,7 +222,7 @@ stdenv.mkDerivation rec {
# use it to work around an impurity in the tetex package; tetex tools # use it to work around an impurity in the tetex package; tetex tools
# cannot find their neighbours (e.g. pdflatex doesn't find mktextfm). # cannot find their neighbours (e.g. pdflatex doesn't find mktextfm).
# We can remove PATH= when those impurities are fixed. # We can remove PATH= when those impurities are fixed.
sed -e "s|^ENV =.*|ENV = dict(XML_CATALOG_FILES='${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook5_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml', PATH='${tetex}/bin')|" \ sed -e "s|^ENV =.*|ENV = dict(XML_CATALOG_FILES='${docbook_xml_dtd_45}/xml/dtd/docbook/catalog.xml ${docbook5_xsl}/xml/xsl/docbook/catalog.xml ${docbook_xsl}/xml/xsl/docbook/catalog.xml', PATH='${tetex}/bin:${coreutils}/bin:${gnused}/bin')|" \
-e "s|^ASCIIDOC =.*|ASCIIDOC = '$out/bin/asciidoc'|" \ -e "s|^ASCIIDOC =.*|ASCIIDOC = '$out/bin/asciidoc'|" \
-e "s|^XSLTPROC =.*|XSLTPROC = '${libxslt}/bin/xsltproc'|" \ -e "s|^XSLTPROC =.*|XSLTPROC = '${libxslt}/bin/xsltproc'|" \
-e "s|^DBLATEX =.*|DBLATEX = '${dblatexFull}/bin/dblatex'|" \ -e "s|^DBLATEX =.*|DBLATEX = '${dblatexFull}/bin/dblatex'|" \