guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#39311] [PATCH] gnu: Add guix-vim.


From: Efraim Flashner
Subject: [bug#39311] [PATCH] gnu: Add guix-vim.
Date: Mon, 27 Jan 2020 19:20:32 +0200

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

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index b5952e3e21..a2d715dc1c 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -938,3 +938,45 @@ through its msgpack-rpc API.")
 
 (define-public python2-pynvim
   (package-with-python2 python-pynvim))
+
+(define-public guix-vim
+  (package
+    (name "guix-vim")
+    (version "0.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://gitlab.com/Efraim/guix.vim";)
+                     (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1f8h8m96fqh3f9hy87spgh9kdqzyxl11n9s3rywvyq5xhn489bnk"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (delete 'build)
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (vimfiles (string-append out "/share/vim/vimfiles"))
+                    (compiler (string-append vimfiles "/compiler"))
+                    (doc      (string-append vimfiles "/doc"))
+                    (indent   (string-append vimfiles "/indent"))
+                    (ftdetect (string-append vimfiles "/ftdetect"))
+                    (ftplugin (string-append vimfiles "/ftplugin"))
+                    (syntax   (string-append vimfiles "/syntax")))
+               (copy-recursively "compiler" compiler)
+               (copy-recursively "doc" doc)
+               (copy-recursively "indent" indent)
+               (copy-recursively "ftdetect" ftdetect)
+               (copy-recursively "ftplugin" ftplugin)
+               (copy-recursively "syntax" syntax)
+               #t))))))
+    (home-page "https://gitlab.com/Efraim/guix.vim";)
+    (synopsis "Guix integration in Vim")
+    (description "This package provides support for GNU Guix in Vim.")
+    (license license:vim)))
-- 
2.25.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]