guix-devel
[Top][All Lists]
Advanced

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

[PATCH 2/2] gnu: Add notmuch-vim.


From: ng0
Subject: [PATCH 2/2] gnu: Add notmuch-vim.
Date: Mon, 16 Jan 2017 15:10:41 +0000

* gnu/packages/vim.scm (notmuch-vim): New variable.
---
 gnu/packages/vim.scm | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index c2c0ccad9..9fa796ba5 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013 Cyril Roelandt <address@hidden>
 ;;; Copyright © 2016 Efraim Flashner <address@hidden>
-;;; Copyright © 2016 ng0 <address@hidden>
+;;; Copyright © 2016, 2017 ng0 <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -36,6 +36,7 @@
   #:use-module (gnu packages image)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages mail)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -207,3 +208,35 @@ from the @command{vi}-editor:
 @end enumerate
 With the package comes a plugin to use vifm as a vim file selector.")
     (license license:gpl2+)))
+
+(define-public notmuch-vim
+  (package
+    (name "notmuch-vim")
+    (version (package-version notmuch))
+    ;; The vim plugin is distributed via the notmuch release tarball.
+    (source (package-source notmuch))
+    (build-system gnu-build-system)
+    (propagated-inputs
+     ;; XXX: This is a plugin, it will not be functional without
+     ;; vim-full (ruby), ruby-mail, and notmuch.
+     `(("ruby-mail" ,ruby-mail)
+       ("ruby-notmuch" ,ruby-notmuch)))
+    (arguments
+     `(#:tests? #f  ; no "test" target
+       #:make-flags (list
+                     (string-append "prefix="
+                                    (assoc-ref %outputs "out")
+                                    "/share/vim/vim80"))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         ;; This package lives in a subdirectory of the notmuch source
+         ;; tree, so chdir into it before building.
+         (add-after 'unpack 'enter-vim-dir
+           (lambda _ (chdir "vim") #t)))))
+    (home-page (package-home-page notmuch))
+    (synopsis "Vim plugin of the Notmuch mail indexing library")
+    (description
+     "This package provides a Vim plugin to enable access to the
+Notmuch mail indexing and search library in Vim.")
+    (license license:gpl3+)))
-- 
2.11.0




reply via email to

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