From 387d52106a0f3835b80a6759c5d0d9400a960916 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 14 Mar 2020 08:48:41 +0100 Subject: [PATCH] phpPackages.exts: Add alias so we have the right pcre lib --- pkgs/top-level/php-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index a2b4434aede..0e044fb04e9 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -728,7 +728,9 @@ let # want to build. # # These will be passed as arguments to mkExtension above. - extensionData = [ + extensionData = let + pcre' = if (lib.versionAtLeast php.version "7.3") then pcre2 else pcre; + in [ ]; # Convert the list of attrs: