1{ buildPecl, lib, php }:
2
3let
4 versionData = if (lib.versionOlder php.version "8.1") then {
5 version = "3.1.6";
6 sha256 = "1lnmrb5kgq8lbhjs48j3wwhqgk44pnqb1yjq4b5r6ysv9l5wlkjm";
7 } else {
8 version = "3.2.0RC2";
9 sha256 = "dQgXDP3Ifg+D0niWxaJ4ec71Vfr8KH40jv6QbxSyY+4=";
10 };
11in
12buildPecl {
13 pname = "xdebug";
14
15 inherit (versionData) version sha256;
16
17 doCheck = true;
18 checkTarget = "test";
19
20 zendExtension = true;
21
22 meta = with lib; {
23 description = "Provides functions for function traces and profiling";
24 license = licenses.php301;
25 homepage = "https://xdebug.org/";
26 maintainers = teams.php.members;
27 };
28}