Subject: [bug#57389] [PATCH 04/29] gnu: Add vim-riscv.

From: "(" <[email-masked]>
Date: Wed, 24 Aug 2022 18:08:31 +0100

* gnu/packages/vim.scm (vim-riscv): New variable.
---
 gnu/packages/vim.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 80db5e754b..313e11095b 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1447,3 +1447,29 @@ (define-public neovim-gas
     (arguments
      (list #:install-plan
            #~'(("syntax" "share/nvim/site/pack/guix/start/gas/"))))))
+
+(define-public vim-riscv
+  (let ((commit "b471644ee06698940f121d7a9af6a579a7390e85")
+        (revision "0"))
+    (package
+     (name "vim-riscv")
+     (version (git-version "0.0.0" revision commit))
+     (source (origin
+               (method git-fetch)
+               (uri (git-reference
+                     (url "https://github.com/kylelaker/riscv.vim")
+                     (commit commit)))
+               (sha256
+                (base32
+                 "0cfr2jvjc98c4hfjjddx1y4gqxmbcva5gka94dz4m4ycxg69yiky"))))
+     (build-system copy-build-system)
+     (arguments
+      (list #:install-plan
+            #~'(("ftdetect" "share/vim/vimfiles/")
+                ("syntax" "share/vim/vimfiles/"))))
+     (home-page "https://github.com/kylelaker/riscv.vim")
+     (synopsis "RISC-V syntax highlighting for Vim")
+     (description
+      "This package provides syntax highlighting for RISC-V assembly
+language in Vim.")
+     (license license:expat))))
-- 
2.37.2