2009-09-11 10:38:25 +01:00
|
|
|
{ fetchurl, stdenv, gettext, gdbm, libtool, pam, readline
|
2016-07-04 03:05:46 +01:00
|
|
|
, ncurses, gnutls, sasl, fribidi, gss , mysql, guile, texinfo,
|
|
|
|
gnum4, dejagnu, nettools }:
|
2009-09-11 10:38:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-09-10 12:50:11 +01:00
|
|
|
name = "mailutils-2.2";
|
2009-09-11 10:38:25 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/mailutils/${name}.tar.bz2";
|
2010-09-10 12:50:11 +01:00
|
|
|
sha256 = "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65";
|
2009-09-11 10:38:25 +01:00
|
|
|
};
|
|
|
|
|
2016-07-04 03:05:46 +01:00
|
|
|
patches = [ ./path-to-cat.patch ./no-gets.patch ./scm_c_string.patch ];
|
2010-09-10 12:50:11 +01:00
|
|
|
|
2016-07-04 03:05:46 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gsasl"
|
|
|
|
"--with-gssapi=${gss}"
|
|
|
|
];
|
2014-08-15 20:16:33 +01:00
|
|
|
|
2010-09-10 12:50:11 +01:00
|
|
|
buildInputs =
|
|
|
|
[ gettext gdbm libtool pam readline ncurses
|
2016-07-04 03:05:46 +01:00
|
|
|
gnutls mysql.lib guile texinfo gnum4 sasl fribidi gss nettools ]
|
2010-09-10 12:50:11 +01:00
|
|
|
++ stdenv.lib.optional doCheck dejagnu;
|
2009-09-11 10:38:25 +01:00
|
|
|
|
2016-07-04 03:05:46 +01:00
|
|
|
doCheck = true;
|
2009-09-11 10:38:25 +01:00
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Rich and powerful protocol-independent mail framework";
|
2009-09-11 10:38:25 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU Mailutils is a rich and powerful protocol-independent mail
|
|
|
|
framework. It contains a series of useful mail libraries, clients, and
|
|
|
|
servers. These are the primary mail utilities for the GNU system. The
|
|
|
|
central library is capable of handling electronic mail in various
|
|
|
|
mailbox formats and protocols, both local and remote. Specifically,
|
|
|
|
this project contains a POP3 server, an IMAP4 server, and a Sieve mail
|
|
|
|
filter. It also provides a POSIX `mailx' client, and a collection of
|
|
|
|
other handy tools.
|
|
|
|
|
|
|
|
The GNU Mailutils libraries supply an ample set of primitives for
|
|
|
|
handling electronic mail in programs written in C, C++, Python or
|
|
|
|
Scheme.
|
|
|
|
|
|
|
|
The utilities provided by Mailutils include imap4d and pop3d mail
|
|
|
|
servers, mail reporting utility comsatd, general-purpose mail delivery
|
|
|
|
agent maidag, mail filtering program sieve, and an implementation of MH
|
|
|
|
message handling system.
|
|
|
|
'';
|
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
license = with licenses; [
|
|
|
|
lgpl3Plus /* libraries */
|
|
|
|
gpl3Plus /* tools */
|
|
|
|
];
|
2009-09-11 10:38:25 +01:00
|
|
|
|
2016-07-04 03:05:46 +01:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2009-09-12 19:47:34 +01:00
|
|
|
|
2009-09-12 20:54:08 +01:00
|
|
|
homepage = http://www.gnu.org/software/mailutils/;
|
|
|
|
|
2009-09-12 21:53:21 +01:00
|
|
|
# Some of the dependencies fail to build on {cyg,dar}win.
|
2015-05-27 20:56:04 +01:00
|
|
|
platforms = platforms.gnu;
|
2009-09-11 10:38:25 +01:00
|
|
|
};
|
|
|
|
}
|