[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v6 18/27] gnu: Add tree-sitter-php.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH v6 18/27] gnu: Add tree-sitter-php. |
Date: |
Sun, 15 May 2022 19:38:25 +0100 |
* gnu/packages/tree-sitter.scm (tree-sitter-php): New variable.
---
gnu/packages/tree-sitter.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index ff98044cc1..654445f71d 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -497,3 +497,33 @@ (define-public tree-sitter-ocaml
(description
"This package provides a OCaml grammar for the Tree-sitter library.")
(license license:expat))))
+
+(define-public tree-sitter-php
+ (let ((commit "435fa00006c0d1515c37fbb4dd6a9de284af75ab")
+ (revision "1"))
+ (package
+ (name "tree-sitter-php")
+ (version (git-version "0.19.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tree-sitter/tree-sitter-php")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "05k4h58gi616gv41r0qqdb1x4rs8y94vghn2r10yczisgzq4vbad"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file "src/grammar.json")
+ (delete-file "src/node-types.json")
+ (delete-file "src/parser.c")
+ (delete-file-recursively "src/tree_sitter")
+ #t))))
+ (build-system tree-sitter-build-system)
+ (home-page "https://github.com/tree-sitter/tree-sitter-php")
+ (synopsis "Tree-sitter PHP grammar")
+ (description
+ "This package provides a PHP grammar for the Tree-sitter library.")
+ (license license:expat))))
--
2.36.0
- [bug#49946] [PATCH v6 08/27] gnu: Add tree-sitter-c-sharp., (continued)
- [bug#49946] [PATCH v6 08/27] gnu: Add tree-sitter-c-sharp., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 05/27] gnu: Add tree-sitter-cpp., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 07/27] gnu: Add tree-sitter-css., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 06/27] gnu: Add tree-sitter-bash., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 10/27] gnu: Add tree-sitter-elm., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 09/27] gnu: Add tree-sitter-elixir., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 11/27] gnu: Add tree-sitter-go., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 13/27] gnu: Add tree-sitter-java., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 15/27] gnu: Add tree-sitter-json., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 16/27] gnu: Add tree-sitter-julia., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 18/27] gnu: Add tree-sitter-php.,
Pierre Langlois <=
- [bug#49946] [PATCH v6 12/27] gnu: Add tree-sitter-html., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 17/27] gnu: Add tree-sitter-ocaml., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 25/27] gnu: Add emacs-tree-sitter-core., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 20/27] gnu: Add tree-sitter-ruby., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 22/27] gnu: Add tree-sitter-typescript., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 26/27] gnu: Add emacs-tree-sitter., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 14/27] gnu: Add tree-sitter-javascript., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 19/27] gnu: Add tree-sitter-python., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 27/27] gnu: Add emacs-tree-sitter-langs., Pierre Langlois, 2022/05/15
- [bug#49946] [PATCH v6 21/27] gnu: Add tree-sitter-rust., Pierre Langlois, 2022/05/15