nixpkgs/pkgs/applications/networking/mpop/default.nix
Artturin 7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00

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;
};
}