From 0d357114129097b7978c79c371ff399fe85cd046 Mon Sep 17 00:00:00 2001 From: Aristid Breitkreuz Date: Sat, 6 Sep 2014 20:10:19 +0200 Subject: [PATCH] atd: use /var/setuid-wrappers/sendmail by default instead of ssmtp --- pkgs/tools/system/at/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/system/at/default.nix b/pkgs/tools/system/at/default.nix index 1dc36043ea9..5108174c887 100644 --- a/pkgs/tools/system/at/default.nix +++ b/pkgs/tools/system/at/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, bison, flex, pam, ssmtp }: +{ fetchurl, stdenv, bison, flex, pam, sendmailPath ? "/var/setuid-wrappers/sendmail" }: stdenv.mkDerivation { name = "at-3.1.15"; @@ -12,15 +12,11 @@ stdenv.mkDerivation { patches = [ ./install.patch ]; buildInputs = - [ bison flex pam - # `configure' and `atd' want the `sendmail' command. - ssmtp - ]; + [ bison flex pam ]; preConfigure = '' - export PATH="${ssmtp}/sbin:$PATH" - + export SENDMAIL=${sendmailPath} # Purity: force atd.pid to be placed in /var/run regardless of # whether it exists now. substituteInPlace ./configure --replace "test -d /var/run" "true"