summary refs log tree commit diff
path: root/pkgs/development/interpreters/php/default.nix
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2017-11-11 17:02:07 +0100
committerSarah Brofeldt <sbrofeldt@gmail.com>2017-11-11 17:02:07 +0100
commitc7891595c92f9f687f29d7187b5c87b4042df226 (patch)
tree81299e45d752879825362cc54503a0fc8ecb37d9 /pkgs/development/interpreters/php/default.nix
parent7ebacd1a43d7112c75555414d968be9fc4c564a4 (diff)
downloadnixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.tar
nixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.tar.gz
nixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.tar.bz2
nixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.tar.lz
nixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.tar.xz
nixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.tar.zst
nixpkgs-c7891595c92f9f687f29d7187b5c87b4042df226.zip
php: Fix php pcre by using external lib
Diffstat (limited to 'pkgs/development/interpreters/php/default.nix')
-rw-r--r--pkgs/development/interpreters/php/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix
index b28d5acf978..3f97116dea2 100644
--- a/pkgs/development/interpreters/php/default.nix
+++ b/pkgs/development/interpreters/php/default.nix
@@ -1,6 +1,6 @@
 { lib, stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
 , mysql, libxml2, readline, zlib, curl, postgresql, gettext
-, openssl, pkgconfig, sqlite, config, libjpeg, libpng, freetype
+, openssl, pcre, pkgconfig, sqlite, config, libjpeg, libpng, freetype
 , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, freetds
 , uwimap, pam, gmp, apacheHttpd, libiconv, systemd }:
 
@@ -91,6 +91,11 @@ let
           configureFlags = [ "--enable-pcntl" ];
         };
 
+        pcre = {
+          configureFlags = ["--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}"];
+          buildInputs = [ pcre ];
+        };
+
         readline = {
           configureFlags = ["--with-readline=${readline.dev}"];
           buildInputs = [ readline ];
@@ -240,6 +245,7 @@ let
         curlWrappersSupport = (!php7) && (config.php.curlWrappers or true);
         gettextSupport = config.php.gettext or true;
         pcntlSupport = config.php.pcntl or true;
+        pcreSupport = config.php.pcreExternal or true;
         postgresqlSupport = config.php.postgresql or true;
         pdo_pgsqlSupport = config.php.pdo_pgsql or true;
         readlineSupport = config.php.readline or true;