1{
2 buildPecl,
3 lib,
4 fetchFromGitHub,
5}:
6
7let
8 version = "1.1.3";
9in
10buildPecl {
11 inherit version;
12 pname = "ast";
13
14 src = fetchFromGitHub {
15 owner = "nikic";
16 repo = "php-ast";
17 rev = "v${version}";
18 sha256 = "sha256-TGMZA3Qe+/TwG+FIevrcQzy/ufCyN8sXKjsPrnz3K1Q=";
19 };
20
21 meta = with lib; {
22 changelog = "https://github.com/nikic/php-ast/releases/tag/v${version}";
23 description = "Exposes the abstract syntax tree generated by PHP";
24 license = licenses.bsd3;
25 homepage = "https://pecl.php.net/package/ast";
26 teams = [ teams.php ];
27 };
28}