guix-patches
[Top][All Lists]
Advanced

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

[bug#49946] [PATCH v4 22/31] gnu: Add tree-sitter-ruby.


From: Pierre Langlois
Subject: [bug#49946] [PATCH v4 22/31] gnu: Add tree-sitter-ruby.
Date: Fri, 18 Feb 2022 14:39:39 +0000

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

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index cecce9af50..6fc9a0c91a 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -674,3 +674,35 @@ (define-public tree-sitter-python
       (description
        "This package provides a Python grammar for the Tree-sitter library.")
       (license license:expat))))
+
+(define-public tree-sitter-ruby
+  (package (inherit tree-sitter-c)
+    (name "tree-sitter-ruby")
+    (version "0.19.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/tree-sitter/tree-sitter-ruby";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0m3h4928rbs300wcb6776h9r88hi32rybbhcaf6rdympl5nzi83v"))
+              (modules '((guix build utils)))
+              (snippet tree-sitter-delete-generated-files)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments tree-sitter-c)
+      ((#:phases phases)
+       `(modify-phases ,phases
+          (replace 'delete-dependencies
+           (lambda _
+             (delete-dependencies '("tree-sitter-cli"
+                                    "nan"
+                                    "node-gyp"
+                                    "prebuild"
+                                    "prebuild-install"))))))))
+    (home-page "https://github.com/tree-sitter/tree-sitter-ruby";)
+    (synopsis "Tree-sitter Ruby grammar")
+    (description
+      "This package provides a Ruby grammar for the Tree-sitter library.")
+    (license license:expat)))
--
2.34.0






reply via email to

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