2008-01-30 20:49:42 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2007-09-03 14:10:57 +02:00
|
|
|
name="procmail-3.22";
|
2008-02-22 10:47:37 +01:00
|
|
|
|
|
|
|
buildInputs = [ stdenv.gcc.libc ];
|
|
|
|
|
2007-09-03 14:10:57 +02:00
|
|
|
installPhase = "
|
|
|
|
ensureDir \$out/bin
|
2008-02-22 10:47:37 +01:00
|
|
|
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
|
2007-09-03 14:10:57 +02:00
|
|
|
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
|
2008-02-22 10:47:37 +01:00
|
|
|
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
|
2007-09-03 14:10:57 +02:00
|
|
|
make DESTDIR=\$out install
|
|
|
|
";
|
2008-02-22 10:47:37 +01:00
|
|
|
|
|
|
|
phases = "unpackPhase installPhase";
|
|
|
|
|
2007-09-03 14:10:57 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
|
|
|
|
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
|
|
|
};
|
|
|
|
}
|