From 119c540303768160ed4d828e6d0fbd7fdf1798b9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 8 Sep 2023 06:55:12 +0200 Subject: [PATCH] extensions: add `xdebug` extensions for PHP >= 8.3 --- pkgs/package-overrides.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/package-overrides.nix b/pkgs/package-overrides.nix index c0725cec..d9decf97 100644 --- a/pkgs/package-overrides.nix +++ b/pkgs/package-overrides.nix @@ -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: {