7e49471316
the argument to optional should not be list
43 lines
734 B
Nix
43 lines
734 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, gnutls
|
|
, gsasl
|
|
, libidn
|
|
, pkg-config
|
|
, Security
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mpop";
|
|
version = "1.4.17";
|
|
|
|
src = fetchurl {
|
|
url = "https://marlam.de/${pname}/releases/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-Qq5JS60pQdn2R8SMPtmMOLqapc8/5I+w/gblttrfi9U=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
gnutls
|
|
gsasl
|
|
libidn
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Security
|
|
];
|
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [
|
|
"--with-macosx-keyring"
|
|
];
|
|
|
|
meta = with lib;{
|
|
description = "POP3 mail retrieval agent";
|
|
homepage = "https://marlam.de/mpop";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|