From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] gnu: Add notmuch-vim. Date: Sun, 15 Jan 2017 21:29:25 +0000 Message-ID: <20170115212925.20567-2-ng0@libertad.pw> References: <87fukkxhfb.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20170115212925.20567-1-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSsLu-0003WB-S9 for guix-devel@gnu.org; Sun, 15 Jan 2017 16:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSsLr-0000Ss-N5 for guix-devel@gnu.org; Sun, 15 Jan 2017 16:28:38 -0500 Received: from aibo.runbox.com ([91.220.196.211]:43026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSsLr-0000Ry-GD for guix-devel@gnu.org; Sun, 15 Jan 2017 16:28:35 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cSsLp-0006hv-29 for guix-devel@gnu.org; Sun, 15 Jan 2017 22:28:33 +0100 In-Reply-To: <20170115212925.20567-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/vim.scm (notmuch-vim): New variable. --- gnu/packages/vim.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 7ba4e6ac3..3eba994fa 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 ;;; Copyright © 2016 Efraim Flashner -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2017 ng0 ;;; ;;; 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,34 @@ 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))) + (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