cygwin: tetex patch to make it build on cygwin

This commit is contained in:
Rok Garbas 2015-05-27 15:36:25 +02:00
parent ea3748d519
commit 08b5686cd7

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed }:
{ stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed, automake }:
stdenv.mkDerivation {
name = "tetex-3.0";
@ -20,6 +20,10 @@ stdenv.mkDerivation {
sed -i 57d texk/kpathsea/c-std.h
'';
preConfigure = if stdenv.isCygwin then ''
find ./ -name "config.guess" -exec rm {} \; -exec ln -s ${automake}/share/automake-*/config.guess {} \;
'' else null;
patches = [ ./environment.patch ./getline.patch ./clang.patch ];
setupHook = ./setup-hook.sh;