GNU bug report logs -
#49946
[PATCH 00/31] Tree-sitter, node-gyp addon support and emacs-tree-sitter
Previous Next
Full log
View this message in rfc822 format
On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote:
> * gnu/packages/tree-sitter.scm (rust-tree-sitter-for-emacs): New variable.
> * gnu/packages/patches/rust-tree-sitter-text-provider-fix.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Register it.
> --- a/gnu/packages/tree-sitter.scm
> +++ b/gnu/packages/tree-sitter.scm
> @@ -196,6 +197,19 @@ (define-public rust-tree-sitter
> +;; We need to apply a patch in order to compile the rust bindings against the
> +;; emacs tree-sitter module.
> +;; See https://github.com/tree-sitter/tree-sitter/pull/1294
> +(define-public rust-tree-sitter-for-emacs
> + (package (inherit rust-tree-sitter)
> + (source (origin
> + (inherit (package-source rust-tree-sitter))
> + (patches (search-patches
> + "rust-tree-sitter-text-provider-fix.patch"))))
> + ;; Do not show this package in the UI as it's only meant to be used for
> + ;; emacs's tree-sitter module.
> + (properties '((hidden? . #t)))))
You can use ``hidden-package'', which is a bit nicer than ``properties''
imo:
(hidden-package
(package (inherit rust-tree-sitter)
...))
-- (
This bug report was last modified 2 years and 119 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.