diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-09-26 08:56:03 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-09-26 08:56:03 +0000 |
commit | 3a9d5063bd49eab12b44a56007680151dbb2f1c0 (patch) | |
tree | 1a85ba02cec0ad2c03d6e9dc60b9686b7fd62439 /pkgs/tools/typesetting/xmlto/default.nix | |
parent | 3d02ab54dddf255b85f659b4edc9a631b34a6b57 (diff) | |
download | nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.tar nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.tar.gz nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.tar.bz2 nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.tar.lz nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.tar.xz nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.tar.zst nixlib-3a9d5063bd49eab12b44a56007680151dbb2f1c0.zip |
xmlto: Add dependency on `w3m' for HTML to text conversions.
svn path=/nixpkgs/trunk/; revision=12923
Diffstat (limited to 'pkgs/tools/typesetting/xmlto/default.nix')
-rw-r--r-- | pkgs/tools/typesetting/xmlto/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/tools/typesetting/xmlto/default.nix b/pkgs/tools/typesetting/xmlto/default.nix index 0bb2338085cc..d30ddc6e89b0 100644 --- a/pkgs/tools/typesetting/xmlto/default.nix +++ b/pkgs/tools/typesetting/xmlto/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, flex, libxml2, libxslt -, docbook_xml_dtd_42, docbook_xsl +, docbook_xml_dtd_42, docbook_xsl, w3m , glibc, bash, getopt, mktemp, findutils , makeWrapper }: @@ -30,13 +30,22 @@ stdenv.mkDerivation rec { postInstall = '' wrapProgram $out/bin/xmlto --prefix PATH : "${libxslt}/bin:${libxml2}/bin" + + # `w3m' is needed for HTML to text conversions. + substituteInPlace "$out/share/xmlto/format/docbook/txt" \ + --replace "/usr/bin/w3m" "${w3m}/bin/w3m" ''; meta = { - description = ''xmlto is a front-end to an XSL toolchain. It chooses - an appropriate stylesheet for the conversion you want - and applies it using an external XSL-T processor. It - also performs any necessary post-processing.''; + description = "xmlto, a front-end to an XSL toolchain"; + + longDescription = '' + xmlto is a front-end to an XSL toolchain. It chooses an + appropriate stylesheet for the conversion you want and applies + it using an external XSL-T processor. It also performs any + necessary post-processing. + ''; + license = "GPLv2+"; homepage = http://cyberelk.net/tim/software/xmlto/; }; |