2011-10-25 19:46:26 +02:00
|
|
|
{ stdenv, fetchurl, ncurses, which, perl
|
2007-08-06 14:18:55 +02:00
|
|
|
, sslSupport ? true
|
|
|
|
, imapSupport ? true
|
2008-05-13 21:21:09 +02:00
|
|
|
, headerCache ? true
|
2010-04-13 00:21:01 +02:00
|
|
|
, saslSupport ? true
|
2011-10-25 19:46:26 +02:00
|
|
|
, gpgmeSupport ? true
|
2008-05-13 21:21:09 +02:00
|
|
|
, gdbm ? null
|
2007-08-06 14:18:55 +02:00
|
|
|
, openssl ? null
|
2010-04-13 00:21:01 +02:00
|
|
|
, cyrus_sasl ? null
|
2011-10-25 19:46:26 +02:00
|
|
|
, gpgme ? null
|
2007-08-06 14:18:55 +02:00
|
|
|
}:
|
|
|
|
|
2008-05-13 21:21:09 +02:00
|
|
|
assert headerCache -> gdbm != null;
|
2007-08-06 14:18:55 +02:00
|
|
|
assert sslSupport -> openssl != null;
|
2010-04-13 00:21:01 +02:00
|
|
|
assert saslSupport -> cyrus_sasl != null;
|
2007-08-05 20:23:53 +02:00
|
|
|
|
2011-08-09 22:21:05 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mutt-1.5.21";
|
2010-07-24 10:50:30 +02:00
|
|
|
|
2007-08-05 20:23:53 +02:00
|
|
|
src = fetchurl {
|
2011-08-09 22:21:05 +02:00
|
|
|
url = "ftp://ftp.mutt.org/mutt/devel/${name}.tar.gz";
|
|
|
|
sha256 = "1864cwz240gh0zy56fb47qqzwyf6ghg01037rb4p2kqgimpg6h91";
|
2007-08-05 20:23:53 +02:00
|
|
|
};
|
2010-07-24 10:50:30 +02:00
|
|
|
|
2007-08-06 14:18:55 +02:00
|
|
|
buildInputs = [
|
2011-10-25 19:46:26 +02:00
|
|
|
ncurses which perl
|
2008-05-13 21:21:09 +02:00
|
|
|
(if headerCache then gdbm else null)
|
2007-08-06 14:18:55 +02:00
|
|
|
(if sslSupport then openssl else null)
|
2010-04-13 00:21:01 +02:00
|
|
|
(if saslSupport then cyrus_sasl else null)
|
2011-10-25 19:46:26 +02:00
|
|
|
(if gpgmeSupport then gpgme else null)
|
2007-08-06 14:18:55 +02:00
|
|
|
];
|
2010-07-24 10:50:30 +02:00
|
|
|
|
2007-08-06 14:18:55 +02:00
|
|
|
configureFlags = [
|
2010-04-13 00:10:15 +02:00
|
|
|
"--with-mailpath=" "--enable-smtp"
|
2010-09-06 09:17:20 +02:00
|
|
|
|
|
|
|
# This allows calls with "-d N", that output debug info into ~/.muttdebug*
|
2011-10-25 19:46:26 +02:00
|
|
|
"--enable-debug"
|
|
|
|
|
|
|
|
"--enable-pop" "--enable-imap"
|
2010-09-06 09:17:20 +02:00
|
|
|
|
2010-04-13 00:10:15 +02:00
|
|
|
# The next allows building mutt without having anything setgid
|
|
|
|
# set by the installer, and removing the need for the group 'mail'
|
|
|
|
# I set the value 'mailbox' because it is a default in the configure script
|
|
|
|
"--with-homespool=mailbox"
|
2008-05-13 21:21:09 +02:00
|
|
|
(if headerCache then "--enable-hcache" else "--disable-hcache")
|
2007-08-06 14:18:55 +02:00
|
|
|
(if sslSupport then "--with-ssl" else "--without-ssl")
|
|
|
|
(if imapSupport then "--enable-imap" else "--disable-imap")
|
2010-09-06 09:17:20 +02:00
|
|
|
(if saslSupport then "--with-sasl" else "--without-sasl")
|
2011-10-25 19:46:26 +02:00
|
|
|
(if gpgmeSupport then "--enable-gpgme" else "--disable-gpgme")
|
2007-08-06 14:18:55 +02:00
|
|
|
];
|
2008-01-30 20:49:42 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.mutt.org;
|
|
|
|
};
|
2007-08-05 20:23:53 +02:00
|
|
|
}
|
2008-05-13 21:21:09 +02:00
|
|
|
|