Subject: [PATCH v7 14/32] gnu: Add tree-sitter-go.

From: Pierre Langlois <[email-masked]>
Date: Fri, 25 Nov 2022 01:21:24 +0000

* gnu/packages/tree-sitter.scm (tree-sitter-go): New variable.
---
 gnu/packages/tree-sitter.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 11548f526b..61d6eba777 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -328,3 +328,27 @@ (define-public tree-sitter-elm
     (description
      "This package provides an Elm grammar for the Tree-sitter library.")
     (license license:expat)))
+
+(define-public tree-sitter-go
+  (let ((commit "05900faa3cdb5d2d8c8bd5e77ee698487e0a8611")
+        (revision "1"))
+    (package
+      (name "tree-sitter-go")
+      (version (git-version "0.19.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/tree-sitter/tree-sitter-go")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1qymkdi4qcnj8ywmsanb6pdl9zd71cbm6kzl87zk241h7dhkkkvz"))
+                (modules '((guix build utils)))
+                (snippet tree-sitter-delete-generated-files)))
+      (build-system tree-sitter-build-system)
+      (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.38.1