tetex: turn off format hardening

This commit is contained in:
Robin Gloster 2016-02-09 00:08:56 +00:00
parent 37918bdc7a
commit 09a3349a79

View File

@ -2,7 +2,7 @@
stdenv.mkDerivation {
name = "tetex-3.0";
src = fetchurl {
url = ftp://cam.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-3.0.tar.gz;
md5 = "944a4641e79e61043fdaf8f38ecbb4b3";
@ -15,6 +15,8 @@ stdenv.mkDerivation {
buildInputs = [ flex bison zlib libpng ncurses ed ];
hardening_format = false;
# fixes "error: conflicting types for 'calloc'", etc.
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 57d texk/kpathsea/c-std.h