gnu: tree-sitter: Update package style.

* gnu/packages/tree-sitter.scm (tree-sitter): Add gexps, remove trailing #t,
reformat code.
This commit is contained in:
Andrew Tropin 2023-02-09 12:33:28 +04:00
parent 8f9edc9ebc
commit 1378bb5348
No known key found for this signature in database
GPG key ID: 2208D20958C1DEB0

View file

@ -40,22 +40,19 @@ (define-public tree-sitter
(base32
"1nv2a2hr22w8ix71b6rkkxv9rfvhvwlmyql0g6lva9qzj4vy50p4"))
(modules '((guix build utils)))
(snippet '(begin
;; Remove bundled ICU parts
(delete-file-recursively "lib/src/unicode")
#t))))
(snippet #~(begin
;; Remove bundled ICU parts
(delete-file-recursively "lib/src/unicode")))))
(build-system gnu-build-system)
(inputs (list icu4c))
(arguments
(list #:phases
'(modify-phases %standard-phases
(delete 'configure))
#~(modify-phases %standard-phases
(delete 'configure))
#:tests? #f ; there are no tests for the runtime library
#:make-flags
#~(list (string-append "PREFIX="
#$output)
(string-append "CC="
#$(cc-for-target)))))
#~(list (string-append "PREFIX=" #$output)
(string-append "CC=" #$(cc-for-target)))))
(home-page "https://tree-sitter.github.io/tree-sitter/")
(synopsis "Incremental parsing system for programming tools")
(description
@ -73,6 +70,5 @@ (define-public tree-sitter
can be embedded in any application
@end itemize
This package includes the @code{libtree-sitter} runtime library.
")
This package includes the @code{libtree-sitter} runtime library.")
(license license:expat)))