php: use system-sendmail

By default PHP is looking for sendmail in /usr/bin/sendmail
which isn't a correct path for NixOS.
This commit is contained in:
Konrad Borowski 2020-08-21 12:37:33 +02:00
parent ae18f738a2
commit 1d43f3490e

View File

@ -8,7 +8,7 @@ let
{ callPackage, lib, stdenv, nixosTests, config, fetchurl, makeWrapper
, symlinkJoin, writeText, autoconf, automake, bison, flex, libtool
, pkgconfig, re2c, apacheHttpd, libargon2, libxml2, pcre, pcre2
, systemd, valgrind, xcbuild
, systemd, system-sendmail, valgrind, xcbuild
, version
, sha256
@ -195,6 +195,10 @@ let
++ lib.optional systemdSupport "--with-fpm-systemd"
++ lib.optional valgrindSupport "--with-valgrind=${valgrind.dev}"
++ lib.optional ztsSupport "--enable-maintainer-zts"
# Sendmail
++ [ "PROG_SENDMAIL=${system-sendmail}/bin/sendmail" ]
;
hardeningDisable = [ "bindnow" ];