Skip to content

Commit

Permalink
extensions: add xdebug extensions for PHP <= 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 8, 2023
1 parent 8db4163 commit 3e6c133
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/package-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,16 @@ in

xdebug =
# xdebug versions were determined using https://xdebug.org/docs/compat
if lib.versionAtLeast prev.php.version "8.0" then
if lib.versionAtLeast prev.php.version "8.3" then
prev.extensions.xdebug.overrideAttrs (attrs: {
name = "xdebug-3.3.0alpha2";
version = "3.3.0alpha2";
src = pkgs.fetchurl {
url = "http://pecl.php.net/get/xdebug-3.3.0alpha2.tgz";
hash = "sha256-wcV71/taOpqs2ckX4vZT1TOWpl1JiP2s6EgPyX9EI6c=";
};
})
else if lib.versionAtLeast prev.php.version "8.0" then
prev.extensions.xdebug
else if lib.versionAtLeast prev.php.version "7.2" then
prev.extensions.xdebug.overrideAttrs (attrs: {
Expand Down

0 comments on commit 3e6c133

Please sign in to comment.