Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

mailutils: use system-sendmail instead of sendmailPath

system-sendmail allows all sendmail's to be auto-detected, including on
non-NixOS systems. This is, to me, a better UX than having to manually
override the sendmailPath argument.

In exchange, it is a breach of retro-compatibility. Given right now I
can't see any uses for sendmailPath other than what is supported by
system-sendmail, I didn't keep it, but it'd be possible to allow
sendmailPath to override the choice of sendmail from system-sendmail.

+10 -2
+8
nixos/doc/manual/release-notes/rl-1903.xml
··· 387 387 root CA (for example Let's Encrypt). 388 388 </para> 389 389 </listitem> 390 + <listitem> 391 + <para> 392 + <literal>mailutils</literal> now works by default when 393 + <literal>sendmail</literal> is not in a setuid wrapper. As a consequence, 394 + the <literal>sendmailPath</literal> argument, having lost its main use, has 395 + been removed. 396 + </para> 397 + </listitem> 390 398 </itemizedlist> 391 399 </section> 392 400
+2 -2
pkgs/tools/networking/mailutils/default.nix
··· 1 1 { stdenv, fetchurl, fetchpatch, autoreconfHook, dejagnu, gettext, pkgconfig 2 2 , gdbm, pam, readline, ncurses, gnutls, guile, texinfo, gnum4, sasl, fribidi, nettools 3 - , python, gss, mysql, sendmailPath ? "/run/wrappers/bin/sendmail" }: 3 + , python, gss, mysql, system-sendmail }: 4 4 5 5 stdenv.mkDerivation rec { 6 6 name = "${project}-${version}"; ··· 50 50 "--with-gssapi" 51 51 "--with-gsasl" 52 52 "--with-mysql" 53 - "--with-path-sendmail=${sendmailPath}" 53 + "--with-path-sendmail=${system-sendmail}/bin/sendmail" 54 54 ]; 55 55 56 56 readmsg-tests = let