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 10, 2023
1 parent f6b1046 commit 119c540
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 @@ -749,7 +749,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 119c540

Please sign in to comment.