nixpkgs/pkgs/applications/misc/procmail/default.nix
Marc Weber ec88f45c93 fix build of procmail
svn path=/nixpkgs/trunk/; revision=19944
2010-02-12 04:07:41 +00:00

24 lines
698 B
Nix

args: with args;
stdenv.mkDerivation {
name="procmail-3.22";
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
";
phases = "unpackPhase installPhase";
src = fetchurl {
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
};
}