Skip to content

Commit f4a451b

Browse files
committed
extensions: add xdebug extensions for PHP <= 8.3
1 parent b69afde commit f4a451b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkgs/package-overrides.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,16 @@ in
729729

730730
xdebug =
731731
# xdebug versions were determined using https://xdebug.org/docs/compat
732-
if lib.versionAtLeast prev.php.version "8.0" then
732+
if lib.versionAtLeast prev.php.version "8.3" then
733+
prev.extensions.xdebug.overrideAttrs (attrs: {
734+
name = "xdebug-3.3.0alpha2";
735+
version = "3.3.0alpha2";
736+
src = pkgs.fetchurl {
737+
url = "http://pecl.php.net/get/xdebug-3.3.0alpha2.tgz";
738+
hash = "sha256-wcV71/taOpqs2ckX4vZT1TOWpl1JiP2s6EgPyX9EI6c=";
739+
};
740+
})
741+
else if lib.versionAtLeast prev.php.version "8.0" then
733742
prev.extensions.xdebug
734743
else if lib.versionAtLeast prev.php.version "7.2" then
735744
prev.extensions.xdebug.overrideAttrs (attrs: {

0 commit comments

Comments
 (0)