2016-05-14 19:03:47 +02:00
|
|
|
{ stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn, Security }:
|
|
|
|
|
2017-03-18 02:02:23 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2016-05-14 19:03:47 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-17 10:17:34 +01:00
|
|
|
version = "1.4.2";
|
2016-05-14 19:03:47 +02:00
|
|
|
name = "mpop-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-16 19:03:35 +01:00
|
|
|
url = "https://marlam.de/mpop/releases/${name}.tar.xz";
|
2019-01-17 10:17:34 +01:00
|
|
|
sha256 = "1rx5mhgqkm7swbynrhbsz32v85h0rydb4kqfgfs9jrznd9d14m2d";
|
2016-05-14 19:03:47 +02:00
|
|
|
};
|
|
|
|
|
2017-03-18 02:02:23 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-16 19:03:35 +01:00
|
|
|
buildInputs = [ gnutls gsasl libidn ]
|
2017-03-18 02:02:23 +01:00
|
|
|
++ optional stdenv.isDarwin Security;
|
2016-05-14 19:03:47 +02:00
|
|
|
|
2018-12-16 19:03:35 +01:00
|
|
|
configureFlags = optional stdenv.isDarwin [ "--with-macosx-keyring" ];
|
2016-05-14 19:03:47 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "POP3 mail retrieval agent";
|
2018-12-16 19:03:35 +01:00
|
|
|
homepage = https://marlam.de/mpop;
|
2017-03-18 02:02:23 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2016-05-14 19:03:47 +02:00
|
|
|
};
|
|
|
|
}
|