[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v2 22/33] gnu: Add tree-sitter-php.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH v2 22/33] gnu: Add tree-sitter-php. |
Date: |
Sun, 29 Aug 2021 11:45:57 +0100 |
* gnu/packages/tree-sitter.scm (tree-sitter-php): New variable.
---
gnu/packages/tree-sitter.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 36831b00b6..d717bbf7b0 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -433,3 +433,32 @@ library.")
(description
"This package provides a Julia grammar for the Tree-sitter library.")
(license license:expat)))
+
+(define-public tree-sitter-php
+ (package (inherit tree-sitter-c)
+ (name "tree-sitter-php")
+ (version "0.19.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tree-sitter/tree-sitter-php")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17cmybgpprw7w9d2v7lmc6zmr90d70g0jqq279gzg0mpwfzla53s"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments tree-sitter-c)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ ;; The parse-example script tries to clone git repositories.
+ (add-after 'unpack 'remove-parse-example
+ (lambda _
+ (substitute* "package.json"
+ ((" && script\\/parse-examples") ""))))))))
+ (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.33.0
- [bug#49946] [PATCH v2 09/33] gnu: node: Patch /usr/bin/env in node-gyp., (continued)
- [bug#49946] [PATCH v2 09/33] gnu: node: Patch /usr/bin/env in node-gyp., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 05/33] gnu: rust-tiny-http: Update to 0.8., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 16/33] gnu: Add tree-sitter-go., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 17/33] gnu: Add tree-sitter-html., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 19/33] gnu: Add tree-sitter-javascript., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 12/33] gnu: Add tree-sitter-c., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 28/33] gnu: rust-emacs-module: Update to 0.16., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 31/33] gnu: Add emacs-tree-sitter-core., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 25/33] gnu: Add tree-sitter-typescript., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 23/33] gnu: Add tree-sitter-python., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 22/33] gnu: Add tree-sitter-php.,
Pierre Langlois <=
- [bug#49946] [PATCH v2 21/33] gnu: Add tree-sitter-julia., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 24/33] gnu: Add tree-sitter-rust., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 26/33] gnu: Add rust-bindgen@0.56., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 32/33] gnu: Add emacs-tree-sitter., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 33/33] gnu: Add emacs-tree-sitter-langs., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 33/33] gnu: Add emacs-tree-sitter-langs., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 30/33] gnu: rust-emacs: Update to 0.17., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 29/33] gnu: rust-emacs-macros: Update to 0.17., Pierre Langlois, 2021/08/29
[bug#49946] [PATCH 10/31] gnu: Add node-nan., Pierre Langlois, 2021/08/08
[bug#49946] [PATCH 09/31] guix: node-build-system: Support compiling addons with node-gyp., Pierre Langlois, 2021/08/08