From 43b2734f538161ed528cb5ab1eefbdc642805626 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Mon, 10 Dec 2018 21:22:32 +0300 Subject: [PATCH] phpPackages.xdebug: fix build with php73 --- pkgs/top-level/php-packages.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 74b6b0dc52a..4fb2a43da8e 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -145,7 +145,9 @@ let sha256 = "0d4p1gpl8gkzdiv860qzxfz250ryf0wmjgyc8qcaaqgkdyh5jy5p"; }; - xdebug = buildPecl { + xdebug = if isPhp73 then xdebug73 else xdebug7; + + xdebug7 = assert !isPhp73; buildPecl { name = "xdebug-2.6.1"; sha256 = "0xxxy6n4lv7ghi9liqx133yskg07lw316vhcds43n1sjq3b93rns"; @@ -154,6 +156,15 @@ let checkTarget = "test"; }; + xdebug73 = assert isPhp73; buildPecl { + name = "xdebug-2.7.0beta1"; + + sha256 = "1ghh14z55l4jklinkgjkfhkw53lp2r7lgmyh7q8kdnf7jnpwx84h"; + + doCheck = true; + checkTarget = "test"; + }; + yaml = buildPecl { name = "yaml-2.0.4";