1 { stdenv, fetchurl, ncurses, which, perl, gpgme
11 assert headerCache -> gdbm != null;
12 assert sslSupport -> openssl != null;
13 assert saslSupport -> cyrus_sasl != null;
15 stdenv.mkDerivation rec {
19 url = "ftp://ftp.mutt.org/mutt/devel/${name}.tar.gz";
20 sha256 = "1864cwz240gh0zy56fb47qqzwyf6ghg01037rb4p2kqgimpg6h91";
24 ncurses which perl gpgme
25 (if headerCache then gdbm else null)
26 (if sslSupport then openssl else null)
27 (if saslSupport then cyrus_sasl else null)
31 "--with-mailpath=" "--enable-smtp"
33 # This allows calls with "-d N", that output debug info into ~/.muttdebug*
34 "--enable-debug" "--enable-pop" "--enable-imap" "--enable-gpgme"
36 # The next allows building mutt without having anything setgid
37 # set by the installer, and removing the need for the group 'mail'
38 # I set the value 'mailbox' because it is a default in the configure script
39 "--with-homespool=mailbox"
40 (if headerCache then "--enable-hcache" else "--disable-hcache")
41 (if sslSupport then "--with-ssl" else "--without-ssl")
42 (if imapSupport then "--enable-imap" else "--disable-imap")
43 (if saslSupport then "--with-sasl" else "--without-sasl")
47 homepage = http://www.mutt.org;