Subject: [bug#70720] [PATCH 1/3] gnu: Add tree-sitter-verilog.

From: Zheng Junjie <[email-masked]>
Date: Fri, 10 May 2024 20:16:56 +0800

Karl Hallsby via Guix-patches via <[email-masked]> writes:

> * gnu/packages/tree-sitter.scm (tree-sitter-verilog): New variable.
>
> Change-Id: I2066aff3cf39cebda956125cdac71236502a7ac5
> ---
>  gnu/packages/tree-sitter.scm | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>
> diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
> index ee0acb82de..105581bfc4 100644
> --- a/gnu/packages/tree-sitter.scm
> +++ b/gnu/packages/tree-sitter.scm
> @@ -701,3 +701,18 @@ (define-public tree-sitter-tlaplus
>     "1.0.8"
>     ;; Version 1.2.1 is most recent, but requires tree-sitter >0.21.0
>     #:repository-url "https://github.com/tlaplus-community/tree-sitter-tlaplus"))
> +
> +(define-public tree-sitter-verilog
> +  (let ((commit "902031343056bc0b11f3e47b33f036a9cf59f58d")
> +        (revision "0"))
> +    (tree-sitter-grammar
> +     "verilog" "Verilog"
> +     "1mrgdi0aj2bm4f2jdz93r1c3m1hiymjfhd2pc14xlz6waxpd48zg"
> +     (git-version "0.0" revision commit)

should 1.0.0, see
https://github.com/tree-sitter/tree-sitter-verilog/blob/902031343056bc0b11f3e47b33f036a9cf59f58d/package.json

> +     #:commit commit
> +     #:get-cleanup-snippet
> +     (lambda _
> +       #~(begin
> +           (use-modules (guix build utils))
> +           (delete-file "binding.gyp")
> +           (delete-file-recursively "bindings"))))))