Subject: [PATCH] gnu: tree-sitter-clojure: Update to 0.0.13.

From: Roman Scherer <[email-masked]>
Date: Tue, 14 Jan 2025 14:36:14 +0100

* gnu/packages/tree-sitter.scm (tree-sitter-clojure): Update to 0.0.13.

Change-Id: If12e1a32744a2ecec3774303ccbba2032e2b0855
---
 gnu/packages/tree-sitter.scm | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 1fcc5533c9..16c0ccec13 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -596,9 +596,21 @@ (define-public tree-sitter-ungrammar
 (define-public tree-sitter-clojure
   (tree-sitter-grammar
    "clojure" "Clojure"
-   "0bgd9g1j4ww45g0l0aa1jac49421z95cc2rhcgqmgx7nzn94rszp"
-   "0.0.11"
-   #:repository-url "https://github.com/sogaiu/tree-sitter-clojure"))
+   "1j41ba48sid6blnfzn6s9vsl829qxd86lr6yyrnl95m42x8q5cx4"
+   "0.0.13"
+   #:repository-url "https://github.com/sogaiu/tree-sitter-clojure"
+   #:get-cleanup-snippet
+   (lambda (grammar-directories)
+     #~(begin
+         (use-modules (guix build utils))
+         (for-each
+          (lambda (lang)
+            (with-directory-excursion lang
+              (delete-file "src/grammar.json")
+              (delete-file "src/node-types.json")
+              (delete-file "src/parser.c")
+              (delete-file-recursively "src/tree_sitter")))
+          '#$grammar-directories)))))
 
 (define-public tree-sitter-markdown
   ;; No tags

base-commit: c2532d05a52a826223a5659d104bf7d73af3e396
-- 
2.47.1