git.iko.soy/typeable/nixpkgs
on master help sign in
php72Packages.xdebug: Init at 2.6.0beta1

Earlier versions doesn't work with PHP 7.2.

commitf1779cec242a6bf540218606636c71dd680afcf8 authorElis Hirwing <elis@hirwing.se> dateMon 1 Jan 2018, 18:23 (9 years ago) parenta3edbc1
1 file changed+13−2
pkgs/top-level/php-packages.nix+13−2
pkgs/top-level/php-packages.nix+13−2
@@ -8,6 +8,8 @@ let
88 };
99 isPhpOlder55 = pkgs.lib.versionOlder php.version "5.5";
1010 isPhp7 = pkgs.lib.versionAtLeast php.version "7.0";
11+ isPhp72 = pkgs.lib.versionAtLeast php.version "7.2";
12+ isPhpOlder7 = pkgs.lib.versionOlder php.version "7.0";
1113
1214 apcu = if isPhp7 then apcu51 else apcu40;
1315
@@ -179,7 +181,7 @@ let
179181 buildInputs = [ pkgs.spidermonkey_1_8_5 ];
180182 };
181183
182− xdebug = if isPhp7 then xdebug25 else xdebug23;
184+ xdebug = if isPhp72 then xdebug26 else if isPhp7 then xdebug25 else xdebug23;
183185
184186 xdebug23 = assert !isPhp7; buildPecl {
185187 name = "xdebug-2.3.1";
@@ -190,7 +192,7 @@ let
190192 checkTarget = "test";
191193 };
192194
193− xdebug25 = buildPecl {
195+ xdebug25 = assert !isPhp72; buildPecl {
194196 name = "xdebug-2.5.0";
195197
196198 sha256 = "03c9y25a3gc3kpav0cdgmhjixcaly6974hx7wgihi0wlchgavmlb";
@@ -199,6 +201,15 @@ let
199201 checkTarget = "test";
200202 };
201203
204+ xdebug26 = assert !isPhpOlder7; buildPecl {
205+ name = "xdebug-2.6.0beta1";
206+
207+ sha256 = "0zaj821jbpaqqcbr9a64sa27my9n980pmyy9kxrvvjqq3qg6dpj9";
208+
209+ doCheck = true;
210+ checkTarget = "test";
211+ };
212+
202213 yaml = if isPhp7 then yaml20 else yaml13;
203214
204215 yaml13 = assert !isPhp7; buildPecl {