about summary refs log tree commit diff
path: root/pkgs/development/interpreters/php
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2019-12-10 20:28:01 +0300
committerIzorkin <izorkin@elven.pw>2020-02-22 11:22:05 +0300
commitac3c11a980a2e9c0ce69eba8b6c10f10190180ee (patch)
tree9949570e6200cbba1dcdcf482161a692e3095214 /pkgs/development/interpreters/php
parenta74fb5a1afb59f0300c73019e75768f28692bce6 (diff)
downloadnixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.tar
nixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.tar.gz
nixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.tar.bz2
nixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.tar.lz
nixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.tar.xz
nixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.tar.zst
nixlib-ac3c11a980a2e9c0ce69eba8b6c10f10190180ee.zip
php: add option pearSupport
Diffstat (limited to 'pkgs/development/interpreters/php')
-rw-r--r--pkgs/development/interpreters/php/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix
index c33492948cc0..e62d461b5c7a 100644
--- a/pkgs/development/interpreters/php/default.nix
+++ b/pkgs/development/interpreters/php/default.nix
@@ -62,6 +62,7 @@ let
   , cgotoSupport ? config.php.cgoto or false
   , valgrindSupport ? (config.php.valgrind or true) && (versionAtLeast version "7.2")
   , ipv6Support ? config.php.ipv6 or true
+  , pearSupport ? (config.php.pear or true) && (libxml2Support)
   }:
 
     let
@@ -195,7 +196,8 @@ let
       ++ optional xmlrpcSupport "--with-xmlrpc"
       ++ optional cgotoSupport "--enable-re2c-cgoto"
       ++ optional valgrindSupport "--with-valgrind=${valgrind.dev}"
-      ++ optional (!ipv6Support) "--disable-ipv6";
+      ++ optional (!ipv6Support) "--disable-ipv6"
+      ++ optional (pearSupport && libxml2Support) "--with-pear=$(out)/lib/php/pear";
 
       hardeningDisable = [ "bindnow" ];