diff mbox series

[bug#67902,v4,94/98] gnu: Add php-twig-twig.

Message ID 20241007214530.4420-94-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:45 p.m. UTC
* gnu/packages/php-xyz.scm (php-twig-twig): New variable.

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

Patch

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 6f10eb976e..a45eae341c 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -2528,3 +2528,29 @@  (define-public php-theseer-tokenizer
     (home-page "https://github.com/theseer/tokenizer")
     (license license:bsd-3)))
 
+(define-public php-twig-twig
+  (package
+    (name "php-twig-twig")
+    (version "3.7.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/twigphp/Twig")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "16bf5n29j4pa98h35hnx14d6fch4f9va92vvm1j1l4n7gm63p3kl"))))
+    (build-system composer-build-system)
+    (inputs
+     (list php-symfony-polyfill-mbstring php-symfony-polyfill-ctype))
+    (native-inputs
+     (list php-phpunit-phpunit
+           php-symfony-phpunit-bridge
+           php-psr-container))
+    (synopsis "Template language for PHP")
+    (description
+     "This package provides a flexible template language for PHP.")
+    (home-page "https://twig.symfony.com")
+    (license license:bsd-3)))
+