about summary refs log tree commit diff
path: root/pkgs/development/php-packages/xdebug/default.nix
blob: 388360462dcf610f691fe5f12965567c637b4ede (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ buildPecl, lib, php }:

let
  versionData = if (lib.versionOlder php.version "8.1") then {
    version = "3.1.6";
    sha256 = "1lnmrb5kgq8lbhjs48j3wwhqgk44pnqb1yjq4b5r6ysv9l5wlkjm";
  } else {
    version = "3.2.0RC2";
    sha256 = "dQgXDP3Ifg+D0niWxaJ4ec71Vfr8KH40jv6QbxSyY+4=";
  };
in
buildPecl {
  pname = "xdebug";

  inherit (versionData) version sha256;

  doCheck = true;
  checkTarget = "test";

  zendExtension = true;

  meta = with lib; {
    description = "Provides functions for function traces and profiling";
    license = licenses.php301;
    homepage = "https://xdebug.org/";
    maintainers = teams.php.members;
  };
}