GNU bug report logs -
#49946
[PATCH 00/31] Tree-sitter, node-gyp addon support and emacs-tree-sitter
Previous Next
Full log
Message #827 received at 49946 <at> debbugs.gnu.org (full text, mbox):
On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote:
> * gnu/packages/tree-sitter.scm (rust-tree-sitter): New variable.
> --- a/gnu/packages/tree-sitter.scm
> +++ b/gnu/packages/tree-sitter.scm
> @@ -158,6 +159,43 @@ (define-public tree-sitter-cli
> + '(begin
> + ;; Remove the runtime library code and dynamically link to
> + ;; it instead.
> + (delete-file-recursively "src")
> + (delete-file "binding_rust/build.rs")
> + (with-output-to-file "binding_rust/build.rs"
> + (lambda _
> + (format #t "fn main() {~@
> + println!(\"cargo:rustc-link-lib=tree-sitter\");~@
> + }~%")))
> + #t))))
Maybe you should actually extract *this* snippet, as you also use
it with tree-sitter-cli?
> + (arguments
> + `(#:cargo-inputs
> + (("rust-cc" ,rust-cc-1)
> + ("rust-lazy-static" ,rust-lazy-static-1)
> + ("rust-regex" ,rust-regex-1))))
(list ...) please.
-- (
This bug report was last modified 2 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.