Files
nixpkgs/pkgs/development/php-packages/ast/default.nix

43 lines
952 B
Nix

{
buildPecl,
lib,
fetchFromGitHub,
fetchpatch,
}:
let
version = "1.1.3";
in
buildPecl {
inherit version;
pname = "ast";
src = fetchFromGitHub {
owner = "nikic";
repo = "php-ast";
tag = "v${version}";
hash = "sha256-TGMZA3Qe+/TwG+FIevrcQzy/ufCyN8sXKjsPrnz3K1Q=";
};
patches = [
# Support PHP 8.6, backported from upstream master
(fetchpatch {
name = "php86-support.patch";
url = "https://github.com/nikic/php-ast/commit/64ea7276bcd9cf8e503b719aafbec4d802c9eacc.patch";
excludes = [
".github/*"
"ci/*"
];
hash = "sha256-fCZk4cGrJIG66MO7CKb9aJzpvpCSskcc2ZdlFEMtb5U=";
})
];
meta = {
changelog = "https://github.com/nikic/php-ast/releases/tag/v${version}";
description = "Exposes the abstract syntax tree generated by PHP";
license = lib.licenses.bsd3;
homepage = "https://pecl.php.net/package/ast";
teams = [ lib.teams.php ];
};
}