about summary refs log tree commit diff
path: root/pkgs/applications/networking/mpop/default.nix
blob: 3d0d576bffb19de381102a7eab32b5977d6fb84f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn, Security }:

with stdenv.lib;

stdenv.mkDerivation rec {
  version = "1.2.6";
  name = "mpop-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/mpop/${name}.tar.xz";
    sha256 = "0p1ix63jh64dibrlccch8q7gxl9nn18wd2qpyr5z1h4gs2fpmv4z";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ openssl gnutls gsasl libidn ]
    ++ optional stdenv.isDarwin Security;

  configureFlags =
    optional stdenv.isDarwin [ "--with-macosx-keyring" ];

  meta = {
      description = "POP3 mail retrieval agent";
      homepage = http://mpop.sourceforge.net/;
      license = licenses.gpl3Plus;
      platforms = platforms.unix;
    };
}