1{ lib, stdenv, fetchurl, openssl, python3 }:
2
3stdenv.mkDerivation rec {
4 pname = "fetchmail";
5 version = "6.4.37";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/fetchmail/fetchmail-${version}.tar.xz";
9 sha256 = "sha256-ShguXYk+mr5qw3rnHlQmUfzm1gYjT8c1wqquGGV+aeo=";
10 };
11
12 buildInputs = [ openssl python3 ];
13
14 configureFlags = [ "--with-ssl=${openssl.dev}" ];
15
16 meta = with lib; {
17 homepage = "https://www.fetchmail.info/";
18 description = "A full-featured remote-mail retrieval and forwarding utility";
19 longDescription = ''
20 A full-featured, robust, well-documented remote-mail retrieval and
21 forwarding utility intended to be used over on-demand TCP/IP links
22 (such as SLIP or PPP connections). It supports every remote-mail
23 protocol now in use on the Internet: POP2, POP3, RPOP, APOP, KPOP,
24 all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and
25 IPSEC.
26 '';
27 platforms = platforms.unix;
28 license = licenses.gpl2Plus;
29 };
30}