6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
32 lines
922 B
Nix
32 lines
922 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "procmail";
|
|
version = "3.24";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/BuGlessRB/procmail/archive/refs/tags/v${version}.tar.gz";
|
|
sha256 = "UU6kMzOXg+ld+TIeeUdx5Ih7mCOsVf2yRpcCz2m9OYk=";
|
|
};
|
|
|
|
# getline is defined differently in glibc now. So rename it.
|
|
# Without the .PHONY target "make install" won't install anything on Darwin.
|
|
postPatch = ''
|
|
sed -i Makefile \
|
|
-e "s%^RM.*$%#%" \
|
|
-e "s%^BASENAME.*%\BASENAME=$out%" \
|
|
-e "s%^LIBS=.*%LIBS=-lm%"
|
|
sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
|
|
sed -e "3i\
|
|
.PHONY: install
|
|
" -i Makefile
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Mail processing and filtering utility";
|
|
homepage = "https://github.com/BuGlessRB/procmail/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|