From 65186deae436f419fbe56a88d097181453728a29 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Fri, 10 May 2024 11:26:46 -0500 Subject: gnu: Add tree-sitter-verilog. * gnu/packages/tree-sitter.scm (tree-sitter-verilog): New variable. Change-Id: I2066aff3cf39cebda956125cdac71236502a7ac5 Change-Id: If4acb8c10cd3942f46dcb05b8009760a6452b67a Signed-off-by: Zheng Junjie --- gnu/packages/tree-sitter.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index fc43357c3e..9d4f73b3c8 100644 --- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -725,3 +725,19 @@ which will be used as a snippet in origin." ;; Version 0.7.1 would be most recent, but would require tree-sitter >= 0.21.0. "0.6.2" #:repository-url "https://github.com/Beaglefoot/tree-sitter-awk")) + +(define-public tree-sitter-verilog + (let ((version "1.0.0") ; In package.json, but untagged + (commit "075ebfc84543675f12e79a955f79d717772dcef3") + (revision "0")) + (tree-sitter-grammar + "verilog" "Verilog" + "0j5iycqm5dmvzy7dssm8km1djhr7hnfgk26zyzcxanhrwwq3wi4k" + (git-version version revision commit) + #:commit commit + #:get-cleanup-snippet + (lambda _ + #~(begin + (use-modules (guix build utils)) + (delete-file "binding.gyp") + (delete-file-recursively "bindings")))))) -- cgit v1.2.3