|
|
@ -1,4 +1,5 @@ |
|
|
|
(define-module (rosenthal packages tree-sitter) |
|
|
|
(define-module (rosenthal packages tree-sitter) |
|
|
|
|
|
|
|
#:use-module (guix gexp) |
|
|
|
#:use-module (guix packages)) |
|
|
|
#:use-module (guix packages)) |
|
|
|
|
|
|
|
|
|
|
|
(define tree-sitter-grammar |
|
|
|
(define tree-sitter-grammar |
|
|
@ -10,7 +11,22 @@ |
|
|
|
"yaml" "YAML" |
|
|
|
"yaml" "YAML" |
|
|
|
"1bimf5fq85wn8dwlk665w15n2bj37fma5rsfxrph3i9yb0lvzi3q" |
|
|
|
"1bimf5fq85wn8dwlk665w15n2bj37fma5rsfxrph3i9yb0lvzi3q" |
|
|
|
"0.5.0" |
|
|
|
"0.5.0" |
|
|
|
#:repository-url "https://github.com/ikatyang/tree-sitter-yaml"))) |
|
|
|
#:repository-url "https://github.com/ikatyang/tree-sitter-yaml" |
|
|
|
|
|
|
|
#:get-cleanup-snippet |
|
|
|
|
|
|
|
(lambda (grammar-directories) |
|
|
|
|
|
|
|
#~(begin |
|
|
|
|
|
|
|
(use-modules (guix build utils)) |
|
|
|
|
|
|
|
(delete-file-recursively "docs") |
|
|
|
|
|
|
|
(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)))))) |
|
|
|
(package |
|
|
|
(package |
|
|
|
(inherit base) |
|
|
|
(inherit base) |
|
|
|
(arguments |
|
|
|
(arguments |
|
|
|