Skip to content

Commit cd68108

Browse files
committed
extensions: add xdebug extensions for PHP <= 8.3
1 parent 3ea0b43 commit cd68108

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
@@ -749,7 +749,16 @@ in
749749

750750
xdebug =
751751
# xdebug versions were determined using https://xdebug.org/docs/compat
752-
if lib.versionAtLeast prev.php.version "8.0" then
752+
if lib.versionAtLeast prev.php.version "8.3" then
753+
prev.extensions.xdebug.overrideAttrs (attrs: {
754+
name = "xdebug-3.3.0alpha2";
755+
version = "3.3.0alpha2";
756+
src = pkgs.fetchurl {
757+
url = "http://pecl.php.net/get/xdebug-3.3.0alpha2.tgz";
758+
hash = "sha256-wcV71/taOpqs2ckX4vZT1TOWpl1JiP2s6EgPyX9EI6c=";
759+
};
760+
})
761+
else if lib.versionAtLeast prev.php.version "8.0" then
753762
prev.extensions.xdebug
754763
else if lib.versionAtLeast prev.php.version "7.2" then
755764
prev.extensions.xdebug.overrideAttrs (attrs: {

0 commit comments

Comments
 (0)