From 6e0d0636a10c09246bd5678211e871ad6b9d7f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 12 Apr 2015 00:31:08 +0200 Subject: [PATCH] mutt: use "sendmail" instead of "/usr/bin/sendmail" That way sending mail with mutt works on NixOS too, without having to manually change mutt's config on your system. sendmail will be found in $PATH at runtime, and thus the setuid wrapper will be used, if available. --- pkgs/applications/networking/mailreaders/mutt/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/networking/mailreaders/mutt/default.nix b/pkgs/applications/networking/mailreaders/mutt/default.nix index 7c60864b486c..40d302464f62 100644 --- a/pkgs/applications/networking/mailreaders/mutt/default.nix +++ b/pkgs/applications/networking/mailreaders/mutt/default.nix @@ -39,6 +39,9 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-mailpath=" "--enable-smtp" + # Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail + "ac_cv_path_SENDMAIL=sendmail" + # This allows calls with "-d N", that output debug info into ~/.muttdebug* "--enable-debug"