aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2023-10-19 23:44:30 +0800
committerAndrew Tropin <andrew@trop.in>2023-10-20 12:40:59 +0400
commitf5b7910fe55b3a778daebf0b1f982ec7e6d9b268 (patch)
tree658e34873b07e298dbc2aa48c36520998e6f9fc6
parent58f21fda9d699a314cf03d8abb624d556119cf64 (diff)
downloadguix-f5b7910fe55b3a778daebf0b1f982ec7e6d9b268.tar.gz
guix-f5b7910fe55b3a778daebf0b1f982ec7e6d9b268.zip
gnu: tree-sitter-javascript: Update to 0.20.0-22.f772967.
* gnu/packages/tree-sitter.scm (tree-sitter-javascript): Update to 0.20.0-22.f772967. [#:get-cleanup-snippet]: Remove tree-sitter-javascript.wasm binary. Signed-off-by: Andrew Tropin <andrew@trop.in>
-rw-r--r--gnu/packages/tree-sitter.scm24
1 files changed, 21 insertions, 3 deletions
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index dcb3d5506e..51afe91631 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -317,11 +317,29 @@ which will be used as a snippet in origin."
"0.19.0"))
(define-public tree-sitter-javascript
+ ;; Commit required by tree-sitter-typescript 0.20.3.
+ (let ((commit "f772967f7b7bc7c28f845be2420a38472b16a8ee")
+ (revision "22"))
(tree-sitter-grammar
"javascript" "JavaScript(JSX)"
- "175yrk382n2di0c2xn4gpv8y4n83x1lg4hqn04vabf0yqynlkq67"
- "0.20.0"
- #:commit "rust-0.20.0"))
+ "0vp7z57scpbcvyxpya06lnpz9f5kjdb66wjlkrp684xwjjgq1wxd"
+ (git-version "0.20.0" revision commit)
+ #:commit commit
+ #:get-cleanup-snippet
+ (lambda (grammar-directories)
+ #~(begin
+ (use-modules (guix build utils))
+ (delete-file "tree-sitter-javascript.wasm")
+ (delete-file "binding.gyp")
+ (delete-file-recursively "bindings")
+ (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-typescript
(tree-sitter-grammar