depot/third_party/nixpkgs/pkgs/servers/mail/opensmtpd/libopensmtpd/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

34 lines
709 B
Nix

{ 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;
maintainers = with maintainers; [ malte-v ];
};
}