2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libevent
|
|
|
|
, mandoc
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libopensmtpd";
|
|
|
|
version = "0.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://imperialat.at/releases/libopensmtpd-${version}.tar.gz";
|
|
|
|
hash = "sha256-zdbV4RpwY/kmXaQ6QjCcZGVUuLaLA5gsqEctvisIphM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./no-chown-while-installing.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ mandoc ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"-f Makefile.gnu"
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"LOCALBASE="
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for creating OpenSMTPD filters";
|
|
|
|
homepage = "http://imperialat.at/dev/libopensmtpd/";
|
|
|
|
license = licenses.isc;
|
2023-02-09 11:40:11 +00:00
|
|
|
maintainers = with maintainers; [ malte-v ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|