Subject: [PATCH v7 12/32] gnu: Add tree-sitter-elixir.

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

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

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 0f65e50440..3ffb91a1a7 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -280,3 +280,29 @@ (define-public tree-sitter-css
     (description
      "This package provides a CSS grammar for the Tree-sitter library.")
     (license license:expat)))
+
+(define-public tree-sitter-elixir
+  (let ((commit "de20391afe5cb03ef1e8a8e43167e7b58cc52869")
+        (revision "1"))
+    (package
+      (name "tree-sitter-elixir")
+      (version (git-version "0.19.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/elixir-lang/tree-sitter-elixir")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0zrkrwhw3g1vazsxcwrfd1fk4wvs9hdwmwp6073mfh370bz4140h"))
+                (modules '((guix build utils)))
+                (snippet tree-sitter-delete-generated-files)))
+      (build-system tree-sitter-build-system)
+      (home-page "https://elixir-lang.org/tree-sitter-elixir/")
+      (synopsis "Tree-sitter Elixir grammar")
+      (description
+       "This package provides a Elixir grammar for the Tree-sitter library.")
+      (license (list license:asl2.0
+                     ;; Files in tests/corpus are under MIT license.
+                     license:expat)))))
-- 
2.38.1