* 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 <tipec...@gmail.com> ;;; Copyright © 2016 Efraim Flashner <efr...@flashner.co.il> -;;; Copyright © 2016 ng0 <n...@we.make.ritual.n0.is> +;;; Copyright © 2016, 2017 ng0 <contact....@cryptolab.net> ;;; ;;; 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