about summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2015-04-12 00:31:08 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-04-12 10:48:30 +0200
commit6e0d0636a10c09246bd5678211e871ad6b9d7f5e (patch)
treeaf1df4353415be74fdfec96add060fed92f9b2ca /pkgs/applications/networking
parent11ff78da80cf5c7dc6e8b3b6953b843e724703e2 (diff)
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.
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/mailreaders/mutt/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/networking/mailreaders/mutt/default.nix b/pkgs/applications/networking/mailreaders/mutt/default.nix
index 7c60864b486ca..40d302464f625 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"