php: use system-sendmail

By default PHP is looking for sendmail in /usr/bin/sendmail
which isn't a correct path for NixOS.
wip/yesman
Konrad Borowski 4 years ago
parent ae18f738a2
commit 1d43f3490e
  1. 6
      pkgs/development/interpreters/php/default.nix

@ -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" ];

Loading…
Cancel
Save