1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/mailreaders/mutt/default.nix

68 lines
1.9 KiB
Nix
Raw Normal View History

2016-09-19 02:53:03 +01:00
{ stdenv, fetchurl, ncurses, which, perl
, gdbm ? null
, openssl ? null
, cyrus_sasl ? null
, gpgme ? null
2016-07-09 04:13:52 +01:00
, headerCache ? true
, sslSupport ? true
, saslSupport ? true
, gpgmeSupport ? true
, imapSupport ? true
2016-09-19 02:53:03 +01:00
, withSidebar ? true
}:
2016-07-09 04:13:52 +01:00
assert headerCache -> gdbm != null;
assert sslSupport -> openssl != null;
assert saslSupport -> cyrus_sasl != null;
assert gpgmeSupport -> gpgme != null;
with stdenv.lib;
stdenv.mkDerivation rec {
2016-07-09 04:13:52 +01:00
name = "mutt-${version}";
2016-10-09 12:19:17 +01:00
version = "1.7.1";
src = fetchurl {
2016-07-09 04:13:52 +01:00
url = "http://ftp.mutt.org/pub/mutt/${name}.tar.gz";
2016-10-09 12:19:17 +01:00
sha256 = "1pyns0xw52s4yma1a93pdcl4dirs55q2m1hd7w1r11nlhf7giip9";
};
2016-07-09 04:13:52 +01:00
buildInputs =
[ ncurses which perl ]
2016-07-09 04:13:52 +01:00
++ optional headerCache gdbm
++ optional sslSupport openssl
++ optional saslSupport cyrus_sasl
2016-09-19 02:53:03 +01:00
++ optional gpgmeSupport gpgme;
configureFlags = [
2016-07-09 04:13:52 +01:00
(enableFeature headerCache "hcache")
(enableFeature gpgmeSupport "gpgme")
(enableFeature imapSupport "imap")
(enableFeature withSidebar "sidebar")
"--enable-smtp"
"--enable-pop"
"--enable-imap"
"--with-mailpath="
# Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail
"ac_cv_path_SENDMAIL=sendmail"
# This allows calls with "-d N", that output debug info into ~/.muttdebug*
"--enable-debug"
# 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 04:13:52 +01:00
] ++ optional sslSupport "--with-ssl"
++ optional saslSupport "--with-sasl";
2016-07-09 04:13:52 +01:00
meta = {
description = "A small but very powerful text-based mail client";
homepage = http://www.mutt.org;
2016-07-09 04:13:52 +01:00
license = licenses.gpl2Plus;
platforms = platforms.unix;
2016-07-09 04:13:52 +01:00
maintainers = with maintainers; [ the-kenny rnhmjoj ];
};
}