1{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, openssl }:
2
3stdenv.mkDerivation rec {
4 pname = "libESMTP";
5 version = "1.1.0";
6
7 nativeBuildInputs = [ meson ninja pkg-config ];
8 buildInputs = [ openssl ];
9
10 src = fetchFromGitHub {
11 owner = "libesmtp";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "1bhh8hlsl9597x0bnfl563k2c09b61qnkb9mfyqcmzlq63m1zw5y";
15 };
16
17 meta = with lib; {
18 description = "A Library for Posting Electronic Mail";
19 longDescription = ''
20 libESMTP is an SMTP client library which manages submission of electronic mail
21 via a preconfigured Mail Transport Agent (MTA) such as Exim or Postfix.
22 It implements many SMTP extensions including TLS for security
23 and PIPELINING for high performance.
24 '';
25 homepage = "https://libesmtp.github.io/";
26 license = licenses.lgpl21Plus;
27 };
28}
29