unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@libertad.pw>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add notmuch-vim.
Date: Sun, 15 Jan 2017 21:29:25 +0000	[thread overview]
Message-ID: <20170115212925.20567-2-ng0@libertad.pw> (raw)
In-Reply-To: <20170115212925.20567-1-ng0@libertad.pw>

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

  reply	other threads:[~2017-01-15 21:28 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-14 15:08 Add: notmuch-vim ng0
2017-01-14 15:08 ` [PATCH 1/2] gnu: Add ruby-mail ng0
2017-01-14 16:55   ` Marius Bakke
2017-01-14 15:08 ` [PATCH 2/2] gnu: Add notmuch-vim ng0
2017-01-14 16:56   ` Marius Bakke
2017-01-14 17:28     ` ng0
2017-01-14 17:40       ` Marius Bakke
2017-01-14 17:56         ` ng0
2017-01-15 19:20           ` Marius Bakke
2017-01-14 17:27   ` Marius Bakke
2017-01-14 17:50     ` ng0
2017-01-15 19:16       ` Marius Bakke
2017-01-15 21:29         ` notmuch-vim ,v2 ng0
2017-01-15 21:29           ` ng0 [this message]
2017-01-15 21:50             ` [PATCH] gnu: Add notmuch-vim Marius Bakke
2017-01-15 22:44               ` ng0
2017-01-16  0:48                 ` Marius Bakke
2017-01-16 15:10                   ` notmuch-vim, ruby-notmuch ng0
2017-01-16 15:10                     ` [PATCH 1/2] gnu: Add ruby-notmuch ng0
2017-01-18 18:39                       ` Marius Bakke
     [not found]                         ` <87r340gp3a.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me>
     [not found]                           ` <87eg00894w.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>
2017-01-18 20:50                             ` ng0
2017-06-11 20:24                         ` ng0
2017-01-16 15:10                     ` [PATCH 2/2] gnu: Add notmuch-vim ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170115212925.20567-2-ng0@libertad.pw \
    --to=ng0@libertad.pw \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).