2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 19:49:42 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 12:55:54 +01:00
|
|
|
name = "procmail-3.22";
|
2008-02-22 09:47:37 +00:00
|
|
|
|
|
|
|
buildInputs = [ stdenv.gcc.libc ];
|
|
|
|
|
2010-02-12 04:07:41 +00:00
|
|
|
# getline is defined differently in glibc now. So rename it.
|
2007-09-03 13:10:57 +01:00
|
|
|
installPhase = "
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p \$out/bin
|
2008-02-22 09:47:37 +00:00
|
|
|
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
|
2007-09-03 13:10:57 +01:00
|
|
|
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
|
2008-02-22 09:47:37 +00:00
|
|
|
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
|
2010-02-12 04:07:41 +00:00
|
|
|
sed -e \"s%getline%thisgetline%g\" -i src/*.c src/*.h
|
2007-09-03 13:10:57 +01:00
|
|
|
make DESTDIR=\$out install
|
|
|
|
";
|
2008-02-22 09:47:37 +00:00
|
|
|
|
|
|
|
phases = "unpackPhase installPhase";
|
|
|
|
|
2007-09-03 13:10:57 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
|
|
|
|
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
|
|
|
};
|
|
|
|
}
|