[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module.
From: |
( |
Subject: |
[bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module. |
Date: |
Fri, 25 Nov 2022 06:37:13 +0000 |
Heya,
On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote:
> * gnu/packages/text-editors.scm (tree-sitter): Move to ...
> * gnu/packages/tree-sitter.scm: ... here, a new module.
> * gnu/packages/vim.scm: Use (gnu packages tree-sitter).
> * gnu/local.mk (GNU_SYSTEM_MODULES): Register tree-sitter.scm new module.
> --- /dev/null
> +++ b/gnu/packages/tree-sitter.scm
> @@ -0,0 +1,78 @@
> +(define-module (gnu packages tree-sitter)
> + #:use-module (guix gexp)
> + #:use-module ((guix licenses) #:prefix license:)
> + #:use-module (guix build-system gnu)
> + #:use-module (guix git-download)
> + #:use-module (guix packages)
> + #:use-module (guix utils)
> + #:use-module (gnu packages icu4c))
Please sort these alphabetically.
> +(define-public tree-sitter
> + (package
> + (name "tree-sitter")
> + (version "0.20.6")
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/tree-sitter/tree-sitter")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "1z20518snyg0zp75qgs5bxmzjqws4dd19vnp6sya494za3qp5b6d"))
> + (modules '((guix build utils)))
> + (snippet '(begin
Please change it to use a gexp: ``(snippet #~(begin ...))''.
> + ;; Remove bundled ICU parts
> + (delete-file-recursively "lib/src/unicode")
> + #t))))
This #T is now unnecessary.
> + (arguments
> + (list #:phases
> + '(modify-phases %standard-phases
> + (delete 'configure))
Please use a gexp here, too.
> + #:make-flags
> + #~(list (string-append "PREFIX="
> + #$output)
> + (string-append "CC="
> + #$(cc-for-target)))))
Maybe modify the indentation here a little.
(string-append "PREFIX=" #$output)
(string-append "CC=" #$(cc-for-target))
> +
> +This package includes the @code{libtree-sitter} runtime library.
> +")
Please remove the newline at the end of the description.
-- (
- [bug#49946] [PATCH v7 00/32] gnu: Add tree-sitter for emacs., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 02/32] gnu: tree-sitter: Update to 0.20.7., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module.,
( <=
- [bug#49946] [PATCH v7 04/32] gnu: Add rust-smallbitvec-2., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 03/32] gnu: Add rust-html-escape., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 08/32] gnu: Add tree-sitter-cpp., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 10/32] gnu: Add tree-sitter-css., Pierre Langlois, 2022/11/24