2022-12-25 20:18:57 +00:00
|
|
|
{
|
|
|
|
buildPecl,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2020-10-11 15:37:37 +00:00
|
|
|
|
2022-12-25 20:18:57 +00:00
|
|
|
let
|
2024-08-11 01:36:17 +00:00
|
|
|
version = "1.1.2";
|
2022-12-25 20:18:57 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit version;
|
2020-10-11 15:37:37 +00:00
|
|
|
pname = "ast";
|
|
|
|
|
2022-12-25 20:18:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nikic";
|
|
|
|
repo = "php-ast";
|
|
|
|
rev = "v${version}";
|
2024-08-11 01:36:17 +00:00
|
|
|
sha256 = "sha256-9HP+hKcpkWmvsx335JiCVjFG+xyAMEm5dWxWC1nZPxU=";
|
2022-12-25 20:18:57 +00:00
|
|
|
};
|
2020-10-11 15:37:37 +00:00
|
|
|
|
2021-06-08 09:50:05 +00:00
|
|
|
meta = with lib; {
|
2022-12-25 20:18:57 +00:00
|
|
|
changelog = "https://github.com/nikic/php-ast/releases/tag/v${version}";
|
2021-06-08 09:50:05 +00:00
|
|
|
description = "Exposes the abstract syntax tree generated by PHP";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://pecl.php.net/package/ast";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
2020-10-11 15:37:37 +00:00
|
|
|
}
|