From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 2/2] gnu: Add notmuch-vim. Date: Mon, 16 Jan 2017 15:10:41 +0000 Message-ID: <20170116151041.3617-3-ng0@libertad.pw> References: <87vatfx21x.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20170116151041.3617-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]:35719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cT8wn-0002Fn-Ak for guix-devel@gnu.org; Mon, 16 Jan 2017 10:11:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cT8wm-0006WK-5D for guix-devel@gnu.org; Mon, 16 Jan 2017 10:11:49 -0500 Received: from aibo.runbox.com ([91.220.196.211]:55772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cT8wl-0006Vp-UG for guix-devel@gnu.org; Mon, 16 Jan 2017 10:11:48 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cT8wk-000782-Qc for guix-devel@gnu.org; Mon, 16 Jan 2017 16:11:46 +0100 In-Reply-To: <20170116151041.3617-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 | 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 ;;; 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,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