about summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-03-22 12:50:13 +0100
committerPeter Simons <simons@cryp.to>2013-03-22 12:50:21 +0100
commit7e24ae77fe59114f6df877d936eb16fa6a1cdaf0 (patch)
tree273baa9aa3ce0ec38fb222c5a64ad60ab06a7586 /pkgs/tools/typesetting
parent617394eaf81ddcf5da0d143b68d5ddc92e31cc67 (diff)
downloadnixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.tar
nixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.tar.gz
nixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.tar.bz2
nixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.tar.lz
nixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.tar.xz
nixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.tar.zst
nixlib-7e24ae77fe59114f6df877d936eb16fa6a1cdaf0.zip
latex2html: update to version 2008
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tex/latex2html/default.nix24
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/tools/typesetting/tex/latex2html/default.nix b/pkgs/tools/typesetting/tex/latex2html/default.nix
index 6fbb8a4f069a..1d1746e9a4b3 100644
--- a/pkgs/tools/typesetting/tex/latex2html/default.nix
+++ b/pkgs/tools/typesetting/tex/latex2html/default.nix
@@ -1,23 +1,25 @@
-{stdenv, fetchurl, tex, perl, netpbm, ghostscript}:
+{ stdenv, fetchurl, tex, perl, netpbm, ghostscript }:
+
+stdenv.mkDerivation rec {
+  name = "latex2html-2008";
+
+  src = fetchurl {
+    url = "http://www.latex2html.org/~latex2ht/current/${name}.tar.gz";
+    sha256 = "1b9pld6wz01p1pf5qwxjipdkhq34hmmw9mfkjp150hlqlcanhiar";
+  };
 
-stdenv.mkDerivation {
-  name = "latex2html-2002-1";
-  
   buildInputs = [ tex perl ghostscript netpbm ];
 
   preConfigure = ''
-      configureFlags="--with-texpath=$out/share/texmf-nix";
+    patchShebangs .
+    sed -i -e "s|#! /bin/cat|#! $(type -p cat)|" configure
+    configureFlags="--with-texpath=$out/share/texmf-nix";
   '';
 
-  src = fetchurl {
-    url = mirror://ubuntu/pool/multiverse/l/latex2html/latex2html_2002-2-1-20050114.orig.tar.gz;
-    sha256 = "22049a77cf88a647776e61e06800ace4f9a06afc6ffe2590574487f023d0881f";
-  };
-
   meta = {
     homepage = "http://www.latex2html.org/";
     description = "Convertor written in Perl that converts LaTeX documents to HTML";
-  };
     license = stdenv.lib.licenses.gpl2Plus;
+  };
 
 }