diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2022-12-25 21:18:57 +0100 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2022-12-29 18:21:57 +0100 |
commit | 4557de030973252d8d30350298714af22c946e5d (patch) | |
tree | 82bc49739fd38aced0da16b129a9269c78874412 | |
parent | 51e1f61039fb163a4bb2aff601010f6f1246b1a3 (diff) |
php.extensions.ast: update `src` attribute
So it can be automatically updated with `nix-update`
-rw-r--r-- | pkgs/development/php-packages/ast/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/php-packages/ast/default.nix b/pkgs/development/php-packages/ast/default.nix index c1c3594f44f8..8f94bf925e5a 100644 --- a/pkgs/development/php-packages/ast/default.nix +++ b/pkgs/development/php-packages/ast/default.nix @@ -1,12 +1,20 @@ -{ buildPecl, lib }: +{ buildPecl, lib, fetchFromGitHub }: -buildPecl { +let + version = "1.1.0"; +in buildPecl { + inherit version; pname = "ast"; - version = "1.1.0"; - sha256 = "sha256-7j1PZ+JNguTTQIBqJAUgEuSVTSIxIpSTd2ZUJ0Q+bRM="; + src = fetchFromGitHub { + owner = "nikic"; + repo = "php-ast"; + rev = "v${version}"; + sha256 = "sha256-e9J6O4A+8xRBlR9m4OK1kTVpzgzsviD0Eqi0iY4AgkY="; + }; meta = with lib; { + changelog = "https://github.com/nikic/php-ast/releases/tag/v${version}"; description = "Exposes the abstract syntax tree generated by PHP"; license = licenses.bsd3; homepage = "https://pecl.php.net/package/ast"; |