[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH 14/31] gnu: Add tree-sitter-go.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH 14/31] gnu: Add tree-sitter-go. |
Date: |
Mon, 9 Aug 2021 00:33:37 +0100 |
* gnu/packages/tree-sitter.scm (tree-sitter-go): 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 05929a9062..f163efd7a3 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -22,6 +22,7 @@
#:use-module (guix build-system node)
#:use-module (guix git-download)
#:use-module (guix packages)
+ #:use-module (guix utils)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages crates-graphics)
#:use-module (gnu packages node-xyz))
@@ -201,3 +202,32 @@ library.")
(description
"This package provides a CSS grammar for the Tree-sitter library.")
(license license:expat)))
+
+(define-public tree-sitter-go
+ (package (inherit tree-sitter-c)
+ (name "tree-sitter-go")
+ (version "0.19.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tree-sitter/tree-sitter-go")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nxs47vd2fc2fr0qlxq496y852rwg39flhg334s7dlyq7d3lcx4x"))))
+ (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-go")
+ (synopsis "Tree-sitter Go grammar")
+ (description
+ "This package provides a Golang grammar for the Tree-sitter library.")
+ (license license:expat)))
--
2.32.0
- [bug#49946] [PATCH v2 30/33] gnu: rust-emacs: Update to 0.17., (continued)
- [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
- [bug#49946] [PATCH 15/31] gnu: Add tree-sitter-html., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 17/31] gnu: Add tree-sitter-javascript., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 13/31] gnu: Add tree-sitter-css., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 12/31] gnu: Add tree-sitter-cpp., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 11/31] gnu: Add tree-sitter-c., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 14/31] gnu: Add tree-sitter-go.,
Pierre Langlois <=
- [bug#49946] [PATCH 16/31] gnu: Add tree-sitter-java., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 18/31] gnu: Add tree-sitter-json., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 19/31] gnu: Add tree-sitter-julia., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 20/31] gnu: Add tree-sitter-php., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 21/31] gnu: Add tree-sitter-python., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 22/31] gnu: Add tree-sitter-rust., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 23/31] gnu: Add tree-sitter-typescript., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 27/31] gnu: rust-emacs-macros: Update to 0.17., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 28/31] gnu: rust-emacs: Update to 0.17., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 25/31] gnu: Add rust-tree-sitter., Pierre Langlois, 2021/08/08