From 4798a65015ecb197d9a50050a9041fa7aeabc400 Mon Sep 17 00:00:00 2001 From: Jon Fineman <41974830+JonJFineman@users.noreply.github.com> Date: Wed, 29 Dec 2021 17:29:21 -0500 Subject: [PATCH] Point the "mail" command to use the system-wide mail.rc As per the info page, the GNU "mail" command is supposed to default to SYSCONFDIR/mail.rc but this path doesn't make sense. Hardcode this to the systemwide path (/etc). This allows tools such as cron to make use of aliases. --- pkgs/tools/networking/mailutils/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix index 74d4b61064bd..28868e853734 100644 --- a/pkgs/tools/networking/mailutils/default.nix +++ b/pkgs/tools/networking/mailutils/default.nix @@ -47,6 +47,7 @@ stdenv.mkDerivation rec { "--with-gsasl" "--with-mysql" "--with-path-sendmail=${system-sendmail}/bin/sendmail" + "--with-mail-rc=/etc/mail.rc" ]; readmsg-tests = let