From a31f7e3a498984bcadf5337848183f1cff698f35 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 1 Nov 2007 14:37:23 +0000 Subject: [PATCH] * Added dblatex, a DocBook -> PS/PDF/DVI converter. svn path=/nixpkgs/trunk/; revision=9569 --- pkgs/misc/tex/dblatex/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/misc/tex/dblatex/default.nix diff --git a/pkgs/misc/tex/dblatex/default.nix b/pkgs/misc/tex/dblatex/default.nix new file mode 100644 index 00000000000..125826e7558 --- /dev/null +++ b/pkgs/misc/tex/dblatex/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchurl, python, libxslt, tetex}: + +stdenv.mkDerivation { + name = "dblatex-0.2.7"; + + src = fetchurl { + url = mirror://sourceforge/dblatex/dblatex-0.2.7.tar.bz2; + sha256 = "0wcsfr2arcayq10fp06h2l7zlbn7l4ffrvzc2qs86103q5xismmr"; + }; + + buildPhase = "true"; + + installPhase = " + 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/; + license = "GPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dfb7a0e3218..f9c2ae3b667 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4238,6 +4238,10 @@ rec { inherit fetchurl stdenv zlib libjpeg libpng libtiff pam; }; + dblatex = import ../misc/tex/dblatex { + inherit fetchurl stdenv python libxslt tetex; + }; + dosbox = import ../misc/emulators/dosbox { inherit fetchurl stdenv SDL; };