From 7e17685d094aa8b6bff5324c4568986286dcff02 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Sun, 12 Nov 2017 13:19:17 +0100 Subject: [PATCH] php: Disallow bundled pcre --- pkgs/development/interpreters/php/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index faf88ca13a98..e46c6b4a0325 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -23,7 +23,7 @@ let enableParallelBuilding = true; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ flex bison ] + buildInputs = [ flex bison pcre ] ++ lib.optional stdenv.isLinux systemd; CXXFLAGS = lib.optional stdenv.cc.isClang "-std=c++11"; @@ -93,11 +93,6 @@ let configureFlags = [ "--enable-pcntl" ]; }; - pcre = { - configureFlags = ["--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}"]; - buildInputs = [ pcre ]; - }; - readline = { configureFlags = ["--with-readline=${readline.dev}"]; buildInputs = [ readline ]; @@ -247,7 +242,6 @@ 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; @@ -293,6 +287,7 @@ let configureFlags = [ "--with-config-file-scan-dir=/etc/php.d" + "--with-pcre-regex=${pcre.dev} PCRE_LIBDIR=${pcre}" ] ++ lib.optional stdenv.isDarwin "--with-iconv=${libiconv}" ++ lib.optional stdenv.isLinux "--with-fpm-systemd";