fix build of procmail

svn path=/nixpkgs/trunk/; revision=19944
This commit is contained in:
Marc Weber 2010-02-12 04:07:41 +00:00
parent 9501307305
commit ec88f45c93

View File

@ -4,11 +4,13 @@ stdenv.mkDerivation {
buildInputs = [ stdenv.gcc.libc ];
# getline is defined differently in glibc now. So rename it.
installPhase = "
ensureDir \$out/bin
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
sed -e \"s%getline%thisgetline%g\" -i src/*.c src/*.h
make DESTDIR=\$out install
";