2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnutls, gsasl, libidn, Security }:
|
2016-05-14 18:03:47 +01:00
|
|
|
|
2017-03-18 01:02:23 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2016-05-14 18:03:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 01:28:04 +01:00
|
|
|
pname = "mpop";
|
2019-07-15 22:28:17 +01:00
|
|
|
version = "1.4.5";
|
2016-05-14 18:03:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-25 01:28:04 +01:00
|
|
|
url = "https://marlam.de/${pname}/releases/${pname}-${version}.tar.xz";
|
2019-07-15 22:28:17 +01:00
|
|
|
sha256 = "1m6743j8g777lijvxqw2wz6pv2g5a9wlh6zq7awk0hvd44xp4sav";
|
2016-05-14 18:03:47 +01:00
|
|
|
};
|
|
|
|
|
2017-03-18 01:02:23 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-16 18:03:35 +00:00
|
|
|
buildInputs = [ gnutls gsasl libidn ]
|
2017-03-18 01:02:23 +00:00
|
|
|
++ optional stdenv.isDarwin Security;
|
2016-05-14 18:03:47 +01:00
|
|
|
|
2018-12-16 18:03:35 +00:00
|
|
|
configureFlags = optional stdenv.isDarwin [ "--with-macosx-keyring" ];
|
2016-05-14 18:03:47 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "POP3 mail retrieval agent";
|
2018-12-16 18:03:35 +00:00
|
|
|
homepage = https://marlam.de/mpop;
|
2017-03-18 01:02:23 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2016-05-14 18:03:47 +01:00
|
|
|
};
|
|
|
|
}
|