1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/BuGlessRB/procmail/archive/refs/tags/v${version}.tar.gz";
9 sha256 = "UU6kMzOXg+ld+TIeeUdx5Ih7mCOsVf2yRpcCz2m9OYk=";
12 # getline is defined differently in glibc now. So rename it.
13 # Without the .PHONY target "make install" won't install anything on Darwin.
17 -e "s%^BASENAME.*%\BASENAME=$out%" \
18 -e "s%^LIBS=.*%LIBS=-lm%"
19 sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
26 description = "Mail processing and filtering utility";
27 homepage = "https://github.com/BuGlessRB/procmail/";
28 license = licenses.gpl2;
29 platforms = platforms.unix;
30 maintainers = with maintainers; [ gebner ];