mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
29 lines
641 B
Nix
29 lines
641 B
Nix
{ 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;
|
|
};
|
|
}
|