2021-01-18 22:50:56 -08:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gnutls, gsasl, libidn, Security }:
|
2016-05-14 10:03:47 -07:00
|
|
|
|
2021-01-15 05:21:58 -08:00
|
|
|
with lib;
|
2017-03-17 18:02:23 -07:00
|
|
|
|
2016-05-14 10:03:47 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-24 17:28:04 -07:00
|
|
|
pname = "mpop";
|
2021-03-25 15:20:29 -07:00
|
|
|
version = "1.4.13";
|
2016-05-14 10:03:47 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-24 17:28:04 -07:00
|
|
|
url = "https://marlam.de/${pname}/releases/${pname}-${version}.tar.xz";
|
2021-03-25 15:20:29 -07:00
|
|
|
sha256 = "sha256-s0mEZsZbZQrdGm55IJsnuoY3VnOkXJalknvtaFoyfcE=";
|
2016-05-14 10:03:47 -07:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-12-16 10:03:35 -08:00
|
|
|
buildInputs = [ gnutls gsasl libidn ]
|
2017-03-17 18:02:23 -07:00
|
|
|
++ optional stdenv.isDarwin Security;
|
2016-05-14 10:03:47 -07:00
|
|
|
|
2018-12-16 10:03:35 -08:00
|
|
|
configureFlags = optional stdenv.isDarwin [ "--with-macosx-keyring" ];
|
2016-05-14 10:03:47 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "POP3 mail retrieval agent";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://marlam.de/mpop";
|
2017-03-17 18:02:23 -07:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2016-05-14 10:03:47 -07:00
|
|
|
};
|
|
|
|
}
|