2010-02-03 14:04:12 +01:00
|
|
|
{ stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed }:
|
2005-04-28 23:10:33 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "tetex-3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2007-08-24 14:32:36 +02:00
|
|
|
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-3.0.tar.gz;
|
2005-04-28 23:10:33 +02:00
|
|
|
md5 = "944a4641e79e61043fdaf8f38ecbb4b3";
|
|
|
|
};
|
|
|
|
|
|
|
|
texmf = fetchurl {
|
2007-08-24 14:32:36 +02:00
|
|
|
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf-3.0.tar.gz;
|
2005-04-28 23:10:33 +02:00
|
|
|
md5 = "11aa15c8d3e28ee7815e0d5fcdf43fd4";
|
|
|
|
};
|
|
|
|
|
2010-02-03 14:04:12 +01:00
|
|
|
buildInputs = [ flex bison zlib libpng ncurses ed ];
|
2006-01-27 21:51:41 +01:00
|
|
|
|
2010-02-03 14:04:12 +01:00
|
|
|
patches = [ ./environment.patch ./getline.patch ];
|
2006-01-27 21:51:41 +01:00
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
2006-10-11 18:45:55 +02:00
|
|
|
|
2010-02-03 14:04:12 +01:00
|
|
|
configureFlags =
|
|
|
|
[ "--disable-multiplatform"
|
|
|
|
"--without-x11"
|
|
|
|
"--without-xdvik"
|
|
|
|
"--without-oxdvik"
|
|
|
|
"--without-texinfo"
|
|
|
|
"--without-texi2html"
|
|
|
|
"--with-system-zlib"
|
|
|
|
"--with-system-pnglib"
|
|
|
|
"--with-system-ncurses"
|
|
|
|
];
|
|
|
|
|
|
|
|
postUnpack =
|
|
|
|
''
|
|
|
|
ensureDir $out/share/texmf
|
|
|
|
ensureDir $out/share/texmf-dist
|
|
|
|
gunzip < $texmf | (cd $out/share/texmf-dist && tar xvf -)
|
|
|
|
'';
|
|
|
|
|
2006-10-11 18:45:55 +02:00
|
|
|
meta = {
|
|
|
|
description = "A full-featured (La)TeX distribution";
|
|
|
|
};
|
2005-04-28 23:10:33 +02:00
|
|
|
}
|