2010-02-03 13:04:12 +00:00
|
|
|
{ stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed }:
|
2005-04-28 21:10:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "tetex-3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2007-08-24 12:32:36 +00:00
|
|
|
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-3.0.tar.gz;
|
2005-04-28 21:10:33 +00:00
|
|
|
md5 = "944a4641e79e61043fdaf8f38ecbb4b3";
|
|
|
|
};
|
|
|
|
|
|
|
|
texmf = fetchurl {
|
2007-08-24 12:32:36 +00:00
|
|
|
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-texmf-3.0.tar.gz;
|
2005-04-28 21:10:33 +00:00
|
|
|
md5 = "11aa15c8d3e28ee7815e0d5fcdf43fd4";
|
|
|
|
};
|
|
|
|
|
2010-02-03 13:04:12 +00:00
|
|
|
buildInputs = [ flex bison zlib libpng ncurses ed ];
|
2006-01-27 20:51:41 +00:00
|
|
|
|
2010-02-03 13:04:12 +00:00
|
|
|
patches = [ ./environment.patch ./getline.patch ];
|
2006-01-27 20:51:41 +00:00
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
2006-10-11 16:45:55 +00:00
|
|
|
|
2010-02-03 13:04:12 +00: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 16:45:55 +00:00
|
|
|
meta = {
|
|
|
|
description = "A full-featured (La)TeX distribution";
|
|
|
|
};
|
2005-04-28 21:10:33 +00:00
|
|
|
}
|