[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v4 23/31] gnu: Add tree-sitter-rust.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH v4 23/31] gnu: Add tree-sitter-rust. |
Date: |
Fri, 18 Feb 2022 14:39:40 +0000 |
* gnu/packages/tree-sitter.scm (tree-sitter-rust): New variable.
---
gnu/packages/tree-sitter.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 6fc9a0c91a..f4df5c5335 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -25,6 +25,7 @@ (define-module (gnu packages tree-sitter)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
+ #:use-module (gnu packages algebra)
#:use-module (gnu packages crates-graphics)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages icu4c))
@@ -706,3 +707,27 @@ (define-public tree-sitter-ruby
(description
"This package provides a Ruby grammar for the Tree-sitter library.")
(license license:expat)))
+
+(define-public tree-sitter-rust
+ (package (inherit tree-sitter-c)
+ (name "tree-sitter-rust")
+ (version "0.20.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tree-sitter/tree-sitter-rust")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "174j5pxwf80c4xniri39l3a6bb7nq96g2s8hh5sgv4i7xvbpfsmg"))
+ (modules '((guix build utils)))
+ (snippet tree-sitter-delete-generated-files)))
+ (native-inputs
+ (modify-inputs (package-native-inputs tree-sitter-c)
+ (prepend bc)))
+ (home-page "https://github.com/tree-sitter/tree-sitter-rust")
+ (synopsis "Tree-sitter Rust grammar")
+ (description
+ "This package provides a Rust grammar for the Tree-sitter library.")
+ (license license:expat)))
--
2.34.0
- [bug#49946] [PATCH v4 15/31] gnu: Add tree-sitter-java., (continued)
- [bug#49946] [PATCH v4 15/31] gnu: Add tree-sitter-java., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 11/31] gnu: Add tree-sitter-elixir., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 12/31] gnu: Add tree-sitter-elm., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 13/31] gnu: Add tree-sitter-go., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 20/31] gnu: Add tree-sitter-php., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 17/31] gnu: Add tree-sitter-json., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 22/31] gnu: Add tree-sitter-ruby., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 18/31] gnu: Add tree-sitter-julia., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 21/31] gnu: Add tree-sitter-python., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 16/31] gnu: Add tree-sitter-javascript., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 23/31] gnu: Add tree-sitter-rust.,
Pierre Langlois <=
- [bug#49946] [PATCH v4 29/31] gnu: Add emacs-tree-sitter-core., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 24/31] gnu: Add tree-sitter-typescript., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 25/31] gnu: Add rust-tree-sitter-for-emacs., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 26/31] gnu: rust-emacs-module: Update to 0.18., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 27/31] gnu: rust-emacs-macros: Update to 0.17., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 30/31] gnu: Add emacs-tree-sitter., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 31/31] gnu: Add emacs-tree-sitter-langs., Pierre Langlois, 2022/02/18
- [bug#49946] [PATCH v4 28/31] gnu: rust-emacs: Update to 0.18., Pierre Langlois, 2022/02/18