13 , sslLibrary ? "gnutls"
15 assert lib.assertOneOf "sslLibrary" sslLibrary ["gnutls" "openssl" "no"];
17 stdenv.mkDerivation rec {
22 url = "https://marlam.de/${pname}/releases/${pname}-${version}.tar.xz";
23 sha256 = "sha256-Ncx94X492spHQ4Y0ZEiPjIKoOsGzdk/d1/QjiBQ1v0s=";
31 lib.optional stdenv.hostPlatform.isDarwin Security
32 ++ lib.optional gsaslSupport gsasl
33 ++ lib.optional idnSupport libidn
34 ++ lib.optional (sslLibrary == "gnutls") gnutls
35 ++ lib.optional (sslLibrary == "openssl") openssl;
38 (lib.enableFeature nlsSupport "nls")
39 (lib.withFeature idnSupport "idn")
40 (lib.withFeature gsaslSupport "gsasl")
41 "--with-tls=${sslLibrary}"
42 ] ++ lib.optional stdenv.hostPlatform.isDarwin "--with-macosx-keyring";
45 description = "POP3 mail retrieval agent";
46 homepage = "https://marlam.de/mpop";
47 license = licenses.gpl3Plus;
48 platforms = platforms.unix;