aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2024-05-10 11:26:46 -0500
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-05-14 00:24:12 +0800
commit65186deae436f419fbe56a88d097181453728a29 (patch)
tree75fc11dfc0004c57f40c68045045e6477158b15d
parent40af021e28102d2f4b2e4b2b3c302f487cb1f591 (diff)
downloadguix-65186deae436f419fbe56a88d097181453728a29.tar.gz
guix-65186deae436f419fbe56a88d097181453728a29.zip
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 <zhengjunjie@iscas.ac.cn>
-rw-r--r--gnu/packages/tree-sitter.scm16
1 files changed, 16 insertions, 0 deletions
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"))))))