a9daa0c0cb
openssl.patch is already merged in this version svn path=/nixpkgs/trunk/; revision=28441
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{ stdenv, fetchurl, ncurses, which, perl, gpgme
|
|
, sslSupport ? true
|
|
, imapSupport ? true
|
|
, headerCache ? true
|
|
, saslSupport ? true
|
|
, gdbm ? null
|
|
, openssl ? null
|
|
, cyrus_sasl ? null
|
|
}:
|
|
|
|
assert headerCache -> gdbm != null;
|
|
assert sslSupport -> openssl != null;
|
|
assert saslSupport -> cyrus_sasl != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mutt-1.5.21";
|
|
|
|
src = fetchurl {
|
|
url = "ftp://ftp.mutt.org/mutt/devel/${name}.tar.gz";
|
|
sha256 = "1864cwz240gh0zy56fb47qqzwyf6ghg01037rb4p2kqgimpg6h91";
|
|
};
|
|
|
|
buildInputs = [
|
|
ncurses which perl gpgme
|
|
(if headerCache then gdbm else null)
|
|
(if sslSupport then openssl else null)
|
|
(if saslSupport then cyrus_sasl else null)
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-mailpath=" "--enable-smtp"
|
|
|
|
# This allows calls with "-d N", that output debug info into ~/.muttdebug*
|
|
"--enable-debug" "--enable-pop" "--enable-imap" "--enable-gpgme"
|
|
|
|
# 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"
|
|
(if headerCache then "--enable-hcache" else "--disable-hcache")
|
|
(if sslSupport then "--with-ssl" else "--without-ssl")
|
|
(if imapSupport then "--enable-imap" else "--disable-imap")
|
|
(if saslSupport then "--with-sasl" else "--without-sasl")
|
|
];
|
|
|
|
meta = {
|
|
homepage = http://www.mutt.org;
|
|
};
|
|
}
|
|
|