Subject: [bug#67902] [PATCH v3 10/96] gnu: Add php-doctrine-lexer.

From: Nicolas Graves <[email-masked]>
Date: Mon, 7 Oct 2024 01:59:05 +0200

* 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 --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)))
+
-- 
2.46.0