14 sslLibrary ? "gnutls",
16 assert lib.assertOneOf "sslLibrary" sslLibrary [
22 stdenv.mkDerivation rec {
27 url = "https://marlam.de/${pname}/releases/${pname}-${version}.tar.xz";
28 sha256 = "sha256-Ncx94X492spHQ4Y0ZEiPjIKoOsGzdk/d1/QjiBQ1v0s=";
36 lib.optional stdenv.hostPlatform.isDarwin Security
37 ++ lib.optional gsaslSupport gsasl
38 ++ lib.optional idnSupport libidn
39 ++ lib.optional (sslLibrary == "gnutls") gnutls
40 ++ lib.optional (sslLibrary == "openssl") openssl;
43 (lib.enableFeature nlsSupport "nls")
44 (lib.withFeature idnSupport "idn")
45 (lib.withFeature gsaslSupport "gsasl")
46 "--with-tls=${sslLibrary}"
47 ] ++ lib.optional stdenv.hostPlatform.isDarwin "--with-macosx-keyring";
50 description = "POP3 mail retrieval agent";
51 homepage = "https://marlam.de/mpop";
52 license = licenses.gpl3Plus;
53 platforms = platforms.unix;