2016-09-19 03:53:03 +02:00
|
|
|
{ stdenv, fetchurl, ncurses, which, perl
|
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
|
2016-07-09 05:13:52 +02:00
|
|
|
, headerCache ? true
|
|
|
|
, sslSupport ? true
|
|
|
|
, saslSupport ? true
|
|
|
|
, gpgmeSupport ? true
|
|
|
|
, imapSupport ? true
|
2016-09-19 03:53:03 +02:00
|
|
|
, withSidebar ? true
|
2007-08-06 14:18:55 +02:00
|
|
|
}:
|
|
|
|
|
2016-07-09 05:13:52 +02:00
|
|
|
assert headerCache -> gdbm != null;
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
assert saslSupport -> cyrus_sasl != null;
|
|
|
|
assert gpgmeSupport -> gpgme != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2007-08-05 20:23:53 +02:00
|
|
|
|
2011-08-09 22:21:05 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-09 05:13:52 +02:00
|
|
|
name = "mutt-${version}";
|
mutt: 1.7.2 -> 1.8.0
From the Changelog:
The keys used are:
!: modified feature, -: deleted feature, +: new feature
1.8.0 (2017-02-24):
- $locale has been removed. Mutt now respects the LC_TIME setting
instead. See also $attribution_locale.
+ $attribution_locale can be used to override the date formatting in
attribution strings. When unset, Mutt will use the locale
environment, but note the default value of $date_format has a
leading '!' which says to use the C-locale.
! Message-id and mail-followup-to headers are now preserved for recalled
messages.
+ <unsidebar_whitelist> added to complement <sidebar_whitelist>.
! The pager position is reset to the top when toggling header-weed.
! IMAP messages moved to $trash via server-side copy are marked as read.
+ <root-message> jumps to the root message of a thread.
! Piped text attachments are charset converted.
+ Added %F to $attach_format, to show the content-disposition filename.
%d will fall back to %F which will fall back to %f.
+ <rename-attachment> allows an attachment name to be changed, without
modifying the underlying file's name.
! Mutt will look for the user's muttrc additionally in
$XDG_CONFIG_HOME/mutt/.
+ Compressed mbox and mmdf files are now supported via open-hook,
close-hook, and append-hook. See contrib/sample.muttrc-compress
for suggested settings. Note this is a compile-time option:
--enable-compressed.
+ When $flag_safe is set, flagged messages cannot be deleted.
+ The '@' pattern modifier can be used to limit matches to known aliases.
+ <mark-message> creates a hotkey binding to a specific message. The hotkey
prefix is specified via $mark_macro_prefix.
+ <setenv> and <unsetenv> can be used to add/remove environment variables
passed to children.
! Mutt will now use the built-in OpenSSL SSL_set_verify() callback
to verify certificates. This allows better support for verifying
chains, including alternative chain support.
+ $uncollapse_new controls whether a thread will be uncollapsed when a new
message arrives.
! $to_chars and $status_chars now accept multibyte characters.
+ <subjectrx> allows replacing matching subjects with something else.
This can be used to declutter subject lines in the index.
+ <edit-label> can be used to add, change, or delete a message's X-Label.
! Pattern expressions with ~y support label tab completion.
+ The header cache now also supports Kyoto Cabinet and LMDB as
backend databases.
2017-02-25 18:36:00 +01:00
|
|
|
version = "1.8.0";
|
2014-11-09 15:55:19 +01:00
|
|
|
|
2007-08-05 20:23:53 +02:00
|
|
|
src = fetchurl {
|
2016-07-09 05:13:52 +02:00
|
|
|
url = "http://ftp.mutt.org/pub/mutt/${name}.tar.gz";
|
mutt: 1.7.2 -> 1.8.0
From the Changelog:
The keys used are:
!: modified feature, -: deleted feature, +: new feature
1.8.0 (2017-02-24):
- $locale has been removed. Mutt now respects the LC_TIME setting
instead. See also $attribution_locale.
+ $attribution_locale can be used to override the date formatting in
attribution strings. When unset, Mutt will use the locale
environment, but note the default value of $date_format has a
leading '!' which says to use the C-locale.
! Message-id and mail-followup-to headers are now preserved for recalled
messages.
+ <unsidebar_whitelist> added to complement <sidebar_whitelist>.
! The pager position is reset to the top when toggling header-weed.
! IMAP messages moved to $trash via server-side copy are marked as read.
+ <root-message> jumps to the root message of a thread.
! Piped text attachments are charset converted.
+ Added %F to $attach_format, to show the content-disposition filename.
%d will fall back to %F which will fall back to %f.
+ <rename-attachment> allows an attachment name to be changed, without
modifying the underlying file's name.
! Mutt will look for the user's muttrc additionally in
$XDG_CONFIG_HOME/mutt/.
+ Compressed mbox and mmdf files are now supported via open-hook,
close-hook, and append-hook. See contrib/sample.muttrc-compress
for suggested settings. Note this is a compile-time option:
--enable-compressed.
+ When $flag_safe is set, flagged messages cannot be deleted.
+ The '@' pattern modifier can be used to limit matches to known aliases.
+ <mark-message> creates a hotkey binding to a specific message. The hotkey
prefix is specified via $mark_macro_prefix.
+ <setenv> and <unsetenv> can be used to add/remove environment variables
passed to children.
! Mutt will now use the built-in OpenSSL SSL_set_verify() callback
to verify certificates. This allows better support for verifying
chains, including alternative chain support.
+ $uncollapse_new controls whether a thread will be uncollapsed when a new
message arrives.
! $to_chars and $status_chars now accept multibyte characters.
+ <subjectrx> allows replacing matching subjects with something else.
This can be used to declutter subject lines in the index.
+ <edit-label> can be used to add, change, or delete a message's X-Label.
! Pattern expressions with ~y support label tab completion.
+ The header cache now also supports Kyoto Cabinet and LMDB as
backend databases.
2017-02-25 18:36:00 +01:00
|
|
|
sha256 = "1axdcylyv0p194y6lj1jx127g5yc74zqzzxdc014cjw02bd1x125";
|
2007-08-05 20:23:53 +02:00
|
|
|
};
|
2010-07-24 10:50:30 +02:00
|
|
|
|
2016-11-10 01:42:18 +01:00
|
|
|
patchPhase = optionalString (openssl != null) ''
|
|
|
|
sed -i 's#/usr/bin/openssl#${openssl}/bin/openssl#' smime_keys.pl
|
|
|
|
'';
|
|
|
|
|
2016-07-09 05:13:52 +02:00
|
|
|
buildInputs =
|
2014-11-19 16:02:41 +01:00
|
|
|
[ ncurses which perl ]
|
2016-07-09 05:13:52 +02:00
|
|
|
++ optional headerCache gdbm
|
|
|
|
++ optional sslSupport openssl
|
|
|
|
++ optional saslSupport cyrus_sasl
|
2016-09-19 03:53:03 +02:00
|
|
|
++ optional gpgmeSupport gpgme;
|
2014-11-09 15:55:19 +01:00
|
|
|
|
2007-08-06 14:18:55 +02:00
|
|
|
configureFlags = [
|
2016-07-09 05:13:52 +02:00
|
|
|
(enableFeature headerCache "hcache")
|
|
|
|
(enableFeature gpgmeSupport "gpgme")
|
|
|
|
(enableFeature imapSupport "imap")
|
|
|
|
(enableFeature withSidebar "sidebar")
|
|
|
|
"--enable-smtp"
|
|
|
|
"--enable-pop"
|
|
|
|
"--enable-imap"
|
|
|
|
"--with-mailpath="
|
2010-09-06 09:17:20 +02:00
|
|
|
|
2015-04-12 00:31:08 +02:00
|
|
|
# Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail
|
|
|
|
"ac_cv_path_SENDMAIL=sendmail"
|
|
|
|
|
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"
|
|
|
|
|
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"
|
2016-07-09 05:13:52 +02:00
|
|
|
] ++ optional sslSupport "--with-ssl"
|
|
|
|
++ optional saslSupport "--with-sasl";
|
2008-01-30 20:49:42 +01:00
|
|
|
|
2016-07-09 05:13:52 +02:00
|
|
|
meta = {
|
2013-12-01 12:35:22 +01:00
|
|
|
description = "A small but very powerful text-based mail client";
|
2008-01-30 20:49:42 +01:00
|
|
|
homepage = http://www.mutt.org;
|
2016-07-09 05:13:52 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2013-12-01 12:35:22 +01:00
|
|
|
platforms = platforms.unix;
|
2016-07-09 05:13:52 +02:00
|
|
|
maintainers = with maintainers; [ the-kenny rnhmjoj ];
|
2008-01-30 20:49:42 +01:00
|
|
|
};
|
2007-08-05 20:23:53 +02:00
|
|
|
}
|