diff mbox series

[bug#67902,v4,10/98] gnu: Add php-doctrine-lexer.

Message ID 20241007214530.4420-10-ngraves@ngraves.fr
State New
Headers show
Series [bug#67902,v4,01/98] gnu: Add abnfgen. | expand

Commit Message

Nicolas Graves Oct. 7, 2024, 9:43 p.m. UTC
* gnu/packages/php-xyz.scm (php-doctrine-lexer): New variable.

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

Patch

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 56b0debcec..f2392535ce 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -204,3 +204,26 @@  (define-public php-doctrine-instantiator
     (home-page "https://www.doctrine-project.org/projects/instantiator")
     (license license:expat)))
 
+(define-public php-doctrine-lexer
+  (package
+    (name "php-doctrine-lexer")
+    (version "3.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/doctrine/lexer")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1kxwq8s9i7gndg66i1c5h6f21w8fc4smd8nj6sg2p0vzrg4m2l43"))))
+    (build-system composer-build-system)
+    (native-inputs
+     (list php-phpunit-phpunit))
+    (synopsis "PHP Doctrine Lexer parser library")
+    (description
+     "This package provides a Doctrine Lexer parser library that can be used
+in Top-Down, Recursive Descent Parsers in PHP.")
+    (home-page "https://www.doctrine-project.org/projects/lexer")
+    (license license:expat)))
+