guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#49946] [PATCH v7 18/32] gnu: Add tree-sitter-javascript.


From: Pierre Langlois
Subject: [bug#49946] [PATCH v7 18/32] gnu: Add tree-sitter-javascript.
Date: Fri, 25 Nov 2022 01:21:28 +0000

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

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 1782fa8e19..99fdd2de2c 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -420,3 +420,26 @@ (define-public tree-sitter-java
     (description
      "This package provides a Java grammar for the Tree-sitter library.")
     (license license:expat)))
+
+(define-public tree-sitter-javascript
+  (package
+    (name "tree-sitter-javascript")
+    (version "0.20.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url 
"https://github.com/tree-sitter/tree-sitter-javascript";)
+                    (commit (string-append "rust-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "175yrk382n2di0c2xn4gpv8y4n83x1lg4hqn04vabf0yqynlkq67"))
+              (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-javascript";)
+    (synopsis "Tree-sitter Javascript grammar")
+    (description
+     "This package provides Javascript and JSX grammars for the Tree-sitter
+library.")
+    (license license:expat)))
-- 
2.38.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]