php72Packages.xdebug: Init at 2.6.0beta1
Earlier versions doesn't work with PHP 7.2.
This commit is contained in:
parent
a3edbc1399
commit
f1779cec24
|
@ -8,6 +8,8 @@ let
|
||||||
};
|
};
|
||||||
isPhpOlder55 = pkgs.lib.versionOlder php.version "5.5";
|
isPhpOlder55 = pkgs.lib.versionOlder php.version "5.5";
|
||||||
isPhp7 = pkgs.lib.versionAtLeast php.version "7.0";
|
isPhp7 = pkgs.lib.versionAtLeast php.version "7.0";
|
||||||
|
isPhp72 = pkgs.lib.versionAtLeast php.version "7.2";
|
||||||
|
isPhpOlder7 = pkgs.lib.versionOlder php.version "7.0";
|
||||||
|
|
||||||
apcu = if isPhp7 then apcu51 else apcu40;
|
apcu = if isPhp7 then apcu51 else apcu40;
|
||||||
|
|
||||||
|
@ -179,7 +181,7 @@ let
|
||||||
buildInputs = [ pkgs.spidermonkey_1_8_5 ];
|
buildInputs = [ pkgs.spidermonkey_1_8_5 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdebug = if isPhp7 then xdebug25 else xdebug23;
|
xdebug = if isPhp72 then xdebug26 else if isPhp7 then xdebug25 else xdebug23;
|
||||||
|
|
||||||
xdebug23 = assert !isPhp7; buildPecl {
|
xdebug23 = assert !isPhp7; buildPecl {
|
||||||
name = "xdebug-2.3.1";
|
name = "xdebug-2.3.1";
|
||||||
|
@ -190,7 +192,7 @@ let
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
};
|
};
|
||||||
|
|
||||||
xdebug25 = buildPecl {
|
xdebug25 = assert !isPhp72; buildPecl {
|
||||||
name = "xdebug-2.5.0";
|
name = "xdebug-2.5.0";
|
||||||
|
|
||||||
sha256 = "03c9y25a3gc3kpav0cdgmhjixcaly6974hx7wgihi0wlchgavmlb";
|
sha256 = "03c9y25a3gc3kpav0cdgmhjixcaly6974hx7wgihi0wlchgavmlb";
|
||||||
|
@ -199,6 +201,15 @@ let
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdebug26 = assert !isPhpOlder7; buildPecl {
|
||||||
|
name = "xdebug-2.6.0beta1";
|
||||||
|
|
||||||
|
sha256 = "0zaj821jbpaqqcbr9a64sa27my9n980pmyy9kxrvvjqq3qg6dpj9";
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkTarget = "test";
|
||||||
|
};
|
||||||
|
|
||||||
yaml = if isPhp7 then yaml20 else yaml13;
|
yaml = if isPhp7 then yaml20 else yaml13;
|
||||||
|
|
||||||
yaml13 = assert !isPhp7; buildPecl {
|
yaml13 = assert !isPhp7; buildPecl {
|
||||||
|
|
Loading…
Reference in a new issue