diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-09-30 13:16:49 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-09-30 13:30:15 +0200 |
commit | a7b9030c8424e769f8d86f816c55925b2eb44d2a (patch) | |
tree | 3fcc0b52f5394b07482b3d8a9de73b769a1a509a /pkgs | |
parent | 61c63e855870abd9e6dd750eeae123c160505ec8 (diff) |
Revert "dblatex: add missing dependencies"
This reverts commit 0350bd3b4853e2b4e3aa4038129073c195c8bef2. It causes a huge increase in the closure size of dblatex, since it now depends on GUI packages like Inkscape. Also, statically depending on teTeX might be annoying for people who use TeXlive.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/typesetting/tex/dblatex/default.nix | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/pkgs/tools/typesetting/tex/dblatex/default.nix b/pkgs/tools/typesetting/tex/dblatex/default.nix index f95621be6f505..fa4746a562ea1 100644 --- a/pkgs/tools/typesetting/tex/dblatex/default.nix +++ b/pkgs/tools/typesetting/tex/dblatex/default.nix @@ -1,5 +1,4 @@ -{ stdenv, fetchurl, python, libxslt, tetex, imagemagick, transfig, inkscape -, fontconfig, ghostscript }: +{ stdenv, fetchurl, python, libxslt, tetex }: stdenv.mkDerivation rec { name = "dblatex-0.3.4"; @@ -9,38 +8,15 @@ stdenv.mkDerivation rec { sha256 = "120w3wm07qx0k1grgdhjwm2vpwil71icshjvqznskp1f6ggch290"; }; - buildInputs = [ python libxslt tetex imagemagick transfig ]; - - # TODO: dblatex tries to execute texindy command, but nixpkgs doesn't have - # that yet. In Ubuntu, texindy is a part of the xindy package. - preConfigure = '' - for file in $(find -name "*.py"); do - sed -e 's|cmd = \["xsltproc|cmd = \["${libxslt}/bin/xsltproc|g' \ - -e 's|Popen(\["xsltproc|Popen(\["${libxslt}/bin/xsltproc|g' \ - -e 's|cmd = "convert|cmd = "${imagemagick}/bin/convert|g' \ - -e 's|cmd = "fig2dev|cmd = "${transfig}/bin/fig2dev|g' \ - -e 's|cmd = \["texindy|cmd = ["nixpkgs_is_missing_texindy|g' \ - -e 's|cmd = \["ps2pdf|cmd = ["${ghostscript}/bin/ps2pdf|g' \ - -e 's|cmd = "inkscape|cmd = "${inkscape}/bin/inkscape|g' \ - -e 's|cmd = "epstopdf|cmd = "${tetex}/bin/epstopdf|g' \ - -e 's|cmd = \["makeindex|cmd = ["${tetex}/bin/makeindex|g' \ - -e 's|doc.program = "pdflatex"|doc.program = "${tetex}/bin/pdflatex"|g' \ - -e 's|self.program = "latex"|self.program = "${tetex}/bin/latex"|g' \ - -e 's|Popen("pdflatex|Popen("${tetex}/bin/pdflatex|g' \ - -e 's|"fc-match"|"${fontconfig}/bin/fc-match"|g' \ - -e 's|"fc-list"|"${fontconfig}/bin/fc-list"|g' \ - -i "$file" - done - - sed -i 's|self.install_layout == "deb"|False|' setup.py - ''; - buildPhase = "true"; installPhase = '' - python ./setup.py install --prefix="$out" --use-python-path --verbose + sed -i 's|self.install_layout == "deb"|False|' setup.py + python ./setup.py install --prefix=$out ''; + buildInputs = [ python libxslt tetex ]; + meta = { description = "A program to convert DocBook to DVI, PostScript or PDF via LaTeX or ConTeXt"; homepage = http://dblatex.sourceforge.net/; |