2017-05-07 04:39:08 +02:00
|
|
|
{ stdenv, fetchFromGitHub, which, autoreconfHook, ncurses, perl
|
2017-10-07 14:25:06 +02:00
|
|
|
, cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
|
2016-04-15 23:01:05 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-13 19:33:18 +02:00
|
|
|
version = "20171013";
|
2016-04-15 23:01:05 +02:00
|
|
|
name = "neomutt-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-05-07 04:39:08 +02:00
|
|
|
owner = "neomutt";
|
|
|
|
repo = "neomutt";
|
|
|
|
rev = "neomutt-${version}";
|
2017-10-13 19:33:18 +02:00
|
|
|
sha256 = "0zn8imqfa76bxpkpy111c4vn6vjarbxc8gqv6m18qkksk0ly26l1";
|
2016-04-15 23:01:05 +02:00
|
|
|
};
|
|
|
|
|
2017-10-07 14:25:06 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_42 libxslt.bin which ];
|
2017-06-02 15:41:03 +02:00
|
|
|
buildInputs = [
|
2017-06-29 04:43:09 +02:00
|
|
|
cyrus_sasl gss gpgme kerberos libidn ncurses
|
2017-06-02 15:41:03 +02:00
|
|
|
notmuch openssl perl lmdb
|
|
|
|
];
|
|
|
|
|
2016-04-15 23:01:05 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-debug"
|
|
|
|
"--enable-gpgme"
|
|
|
|
"--enable-notmuch"
|
|
|
|
"--with-homespool=mailbox"
|
|
|
|
"--with-gss"
|
|
|
|
"--with-mailpath="
|
|
|
|
"--with-ssl"
|
|
|
|
"--with-sasl"
|
|
|
|
"--with-curses"
|
|
|
|
"--with-idn"
|
2016-12-30 03:59:33 +01:00
|
|
|
"--with-lmdb"
|
2016-04-15 23:01:05 +02:00
|
|
|
|
|
|
|
# Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail
|
|
|
|
"ac_cv_path_SENDMAIL=sendmail"
|
|
|
|
];
|
|
|
|
|
2017-09-22 14:03:35 +02:00
|
|
|
# Fix missing libidn in mutt;
|
|
|
|
# this fix is ugly since it links all binaries in mutt against libidn
|
|
|
|
# like pgpring, pgpewrap, ...
|
|
|
|
NIX_LDFLAGS = "-lidn";
|
|
|
|
|
2016-04-15 23:01:05 +02:00
|
|
|
configureScript = "./prepare";
|
|
|
|
|
2017-06-02 15:41:03 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-15 23:01:05 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A small but very powerful text-based mail client";
|
2017-09-09 03:30:41 +02:00
|
|
|
homepage = http://www.neomutt.org;
|
2017-09-14 08:42:25 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2017-06-29 04:43:09 +02:00
|
|
|
maintainers = with maintainers; [ cstrahan erikryb jfrankenau vrthra ];
|
2017-09-09 03:30:41 +02:00
|
|
|
platforms = platforms.unix;
|
2016-04-15 23:01:05 +02:00
|
|
|
};
|
|
|
|
}
|