9 assert tls -> gnutls != null;
11 stdenv.mkDerivation rec {
17 url = "https://untroubled.org/nullmailer/nullmailer-${version}.tar.gz";
18 sha256 = "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq";
21 buildInputs = lib.optional tls gnutls;
25 "--localstatedir=/var"
26 ] ++ lib.optional tls "--enable-tls";
28 installFlags = [ "DESTDIR=$(out)" ];
30 # We have to remove the ''var'' directory, since nix can't handle named pipes
31 # and we can't use it in the store anyway. Same for ''etc''.
32 # The second line is need, because the installer of nullmailer will copy its
33 # own prepared version of ''etc'' and ''var'' and also uses the prefix path (configure phase)
34 # for hardcoded absolute references to its own binary farm, e.g. sendmail binary is
35 # calling nullmailer-inject binary. Since we can't configure inside the store of
36 # the derivation we need both directories in the root, but don't want to put them there
37 # during install, hence we have to fix mumbling inside the install directory.
38 # This is kind of a hack, but the only way I know of, yet.
40 rm -rf $out/var/ $out/etc/
45 enableParallelBuilding = true;
48 homepage = "http://untroubled.org/nullmailer/";
50 A sendmail/qmail/etc replacement MTA for hosts which relay to a fixed set of smart relays.
51 It is designed to be simple to configure, secure, and easily extendable.
53 license = lib.licenses.gpl2Plus;
54 platforms = lib.platforms.all;
55 maintainers = with lib.maintainers; [ sargon ];