nixpkgs-suyu/pkgs/tools/networking/mailutils/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

63 lines
2.1 KiB
Nix

{ fetchurl, stdenv, gettext, gdbm, libtool, pam, readline
, ncurses, gnutls, mysql, guile, texinfo, gnum4, dejagnu, sendmailPath ? "/var/setuid-wrappers/sendmail" }:
/* TODO: Add GNU SASL, GNU GSSAPI, and FreeBidi. */
stdenv.mkDerivation rec {
name = "mailutils-2.2";
src = fetchurl {
url = "mirror://gnu/mailutils/${name}.tar.bz2";
sha256 = "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65";
};
hardeningDisable = [ "format" ];
patches = [ ./path-to-cat.patch ./no-gets.patch ];
configureFlags = "--with-path-sendmail=${sendmailPath}";
buildInputs =
[ gettext gdbm libtool pam readline ncurses
gnutls mysql.lib guile texinfo gnum4 ]
++ stdenv.lib.optional doCheck dejagnu;
# Tests fail since gcc 4.8
doCheck = false;
meta = with stdenv.lib; {
description = "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.
'';
license = with licenses; [
lgpl3Plus /* libraries */
gpl3Plus /* tools */
];
maintainers = [ ];
homepage = http://www.gnu.org/software/mailutils/;
# Some of the dependencies fail to build on {cyg,dar}win.
platforms = platforms.gnu;
};
}