diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix new file mode 100644 index 00000000000..43c804de8fb --- /dev/null +++ b/pkgs/tools/networking/mailutils/default.nix @@ -0,0 +1,48 @@ +{ fetchurl, stdenv, gettext, gdbm, libtool, pam, readline +, ncurses, gnutls, mysql, guile, texinfo, gnum4 }: + +/* TODO: Add GNU SASL, GNU GSSAPI, and FreeBidi. */ + +stdenv.mkDerivation rec { + name = "mailutils-2.1"; + + src = fetchurl { + url = "mirror://gnu/mailutils/${name}.tar.bz2"; + sha256 = "09c4cb7w8z0gaxsqg1wgn2w8kgmqcqpahv7mw3ygw3nagcfh84cs"; + }; + + buildInputs = [ + gettext gdbm libtool pam readline ncurses + gnutls mysql guile texinfo gnum4 + ]; + + doCheck = true; + + meta = { + description = "GNU Mailutils is a rich and powerful protocol-independent mail framework"; + + longDescription = '' + GNU Mailutils is a rich and powerful protocol-independent mail + framework. It contains a series of useful mail libraries, clients, and + servers. These are the primary mail utilities for the GNU system. The + central library is capable of handling electronic mail in various + mailbox formats and protocols, both local and remote. Specifically, + this project contains a POP3 server, an IMAP4 server, and a Sieve mail + filter. It also provides a POSIX `mailx' client, and a collection of + other handy tools. + + The GNU Mailutils libraries supply an ample set of primitives for + handling electronic mail in programs written in C, C++, Python or + Scheme. + + The utilities provided by Mailutils include imap4d and pop3d mail + servers, mail reporting utility comsatd, general-purpose mail delivery + agent maidag, mail filtering program sieve, and an implementation of MH + message handling system. + ''; + + licenses = [ "LGPLv3+" /* libraries */ "GPLv3+" /* tools */ ]; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f1dfa11e9e4..d88a0f6db6f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -986,6 +986,11 @@ let inherit fetchurl stdenv lzo; }; + mailutils = import ../tools/networking/mailutils { + inherit fetchurl stdenv gettext gdbm libtool pam readline ncurses + gnutls mysql guile texinfo gnum4; + }; + man = import ../tools/misc/man { inherit fetchurl stdenv groff less; };