summary refs log tree commit diff
path: root/pkgs/tools/networking/mailutils/default.nix
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2019-01-16 13:13:27 +0100
committerLéo Gaspard <leo@gaspard.io>2019-02-07 17:36:51 +0100
commita6abec9c660eaaf8a9885c235dda1eaeaa466286 (patch)
treebe92d8b0ca9cafc1bee4c4069de7a3cd76a187d3 /pkgs/tools/networking/mailutils/default.nix
parenta59a9a7e603f1aa3a1d499dfbc58a6712a244c6c (diff)
downloadnixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.tar
nixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.tar.gz
nixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.tar.bz2
nixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.tar.lz
nixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.tar.xz
nixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.tar.zst
nixpkgs-a6abec9c660eaaf8a9885c235dda1eaeaa466286.zip
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.
Diffstat (limited to 'pkgs/tools/networking/mailutils/default.nix')
-rw-r--r--pkgs/tools/networking/mailutils/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/networking/mailutils/default.nix b/pkgs/tools/networking/mailutils/default.nix
index d6c67005295..f507e4dc287 100644
--- a/pkgs/tools/networking/mailutils/default.nix
+++ b/pkgs/tools/networking/mailutils/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchurl, fetchpatch, autoreconfHook, dejagnu, gettext, pkgconfig
 , gdbm, pam, readline, ncurses, gnutls, guile, texinfo, gnum4, sasl, fribidi, nettools
-, python, gss, mysql, sendmailPath ? "/run/wrappers/bin/sendmail" }:
+, python, gss, mysql, system-sendmail }:
 
 stdenv.mkDerivation rec {
   name = "${project}-${version}";
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
     "--with-gssapi"
     "--with-gsasl"
     "--with-mysql"
-    "--with-path-sendmail=${sendmailPath}"
+    "--with-path-sendmail=${system-sendmail}/bin/sendmail"
   ];
 
   readmsg-tests = let