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>
parent
58f21fda9d
commit
f5b7910fe5
|
@ -317,11 +317,29 @@ which will be used as a snippet in origin."
|
||||||
"0.19.0"))
|
"0.19.0"))
|
||||||
|
|
||||||
(define-public tree-sitter-javascript
|
(define-public tree-sitter-javascript
|
||||||
|
;; Commit required by tree-sitter-typescript 0.20.3.
|
||||||
|
(let ((commit "f772967f7b7bc7c28f845be2420a38472b16a8ee")
|
||||||
|
(revision "22"))
|
||||||
(tree-sitter-grammar
|
(tree-sitter-grammar
|
||||||
"javascript" "JavaScript(JSX)"
|
"javascript" "JavaScript(JSX)"
|
||||||
"175yrk382n2di0c2xn4gpv8y4n83x1lg4hqn04vabf0yqynlkq67"
|
"0vp7z57scpbcvyxpya06lnpz9f5kjdb66wjlkrp684xwjjgq1wxd"
|
||||||
"0.20.0"
|
(git-version "0.20.0" revision commit)
|
||||||
#:commit "rust-0.20.0"))
|
#: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
|
(define-public tree-sitter-typescript
|
||||||
(tree-sitter-grammar
|
(tree-sitter-grammar
|
||||||
|
|
Reference in New Issue