diff mbox series

[bug#67902,v3,18/96] gnu: Add php-nikic-php-parser.

Message ID 20241007000046.25625-18-ngraves@ngraves.fr
State New
Headers show
Series [bug#67902,v3,01/96] gnu: Add abnfgen. | expand

Commit Message

Nicolas Graves Oct. 6, 2024, 11:59 p.m. UTC
* gnu/packages/php-xyz.scm (php-nikic-php-parser): New variable.

Change-Id: I18394021d9b96293cd0258c530eebd6f196c5f68
---
 gnu/packages/php-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index b6cca38f25..faa9b75f23 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -465,3 +465,25 @@  (define-public php-myclabs-deep-copy
     (home-page "https://github.com/myclabs/DeepCopy")
     (license license:expat)))
 
+(define-public php-nikic-php-parser
+  (package
+    (name "php-nikic-php-parser")
+    (version "4.17.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nikic/PHP-Parser")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1zwcdsgkhg41y2fmqm6jsp91rwgklz1fg09zwayfp43mx7hicq2h"))))
+    (build-system composer-build-system)
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (synopsis "PHP parser written in PHP")
+    (description "This package provides a PHP parser written in PHP, to
+simplify static code analysis and manipulation.")
+    (home-page "https://github.com/nikic/PHP-Parser")
+    (license license:bsd-3)))
+