summary refs log tree commit diff
path: root/pkgs/development/interpreters/php/default.nix
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2018-12-08 19:18:14 +0300
committerIzorkin <izorkin@elven.pw>2018-12-08 19:20:12 +0300
commit9c5311251aa6ca9388cef07999ec604aae401812 (patch)
treee6a7952c66769a7bd0efc15aa4b4fa77e5955531 /pkgs/development/interpreters/php/default.nix
parent35eb1c21dce382fd73309afb3327da145915d1fc (diff)
downloadnixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.tar
nixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.tar.gz
nixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.tar.bz2
nixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.tar.lz
nixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.tar.xz
nixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.tar.zst
nixpkgs-9c5311251aa6ca9388cef07999ec604aae401812.zip
php: add option config.php.systemd
Diffstat (limited to 'pkgs/development/interpreters/php/default.nix')
-rw-r--r--pkgs/development/interpreters/php/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix
index 03a235ae384..67ba470ac01 100644
--- a/pkgs/development/interpreters/php/default.nix
+++ b/pkgs/development/interpreters/php/default.nix
@@ -13,6 +13,7 @@ let
   { version
   , sha256
   , extraPatches ? []
+  , withSystemd ? config.php.systemd or stdenv.isLinux
   , imapSupport ? config.php.imap or (!stdenv.isDarwin)
   , ldapSupport ? config.php.ldap or true
   , mhashSupport ? config.php.mhash or true
@@ -68,7 +69,7 @@ let
 
       nativeBuildInputs = [ pkgconfig autoconf ];
       buildInputs = [ flex bison pcre ]
-        ++ optional stdenv.isLinux systemd
+        ++ optional withSystemd systemd
         ++ optionals imapSupport [ uwimap openssl pam ]
         ++ optionals curlSupport [ curl openssl ]
         ++ optionals ldapSupport [ openldap openssl ]
@@ -105,7 +106,7 @@ let
         "--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}"
       ]
       ++ optional stdenv.isDarwin "--with-iconv=${libiconv}"
-      ++ optional stdenv.isLinux  "--with-fpm-systemd"
+      ++ optional withSystemd "--with-fpm-systemd"
       ++ optionals imapSupport [
         "--with-imap=${uwimap}"
         "--with-imap-ssl"