From: ng0 <ng0@libertad.pw>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] gnu: Add notmuch-vim.
Date: Sat, 14 Jan 2017 17:50:52 +0000 [thread overview]
Message-ID: <87sholedj7.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87lgud4knh.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me>
Marius Bakke <mbakke@fastmail.com> writes:
> ng0 <ng0@libertad.pw> writes:
>
>> * gnu/packages/mail.scm (notmuch-vim): New variable.
>> ---
>> gnu/packages/mail.scm | 37 ++++++++++++++++++++++++++++++++++++-
>> 1 file changed, 36 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
>> index 206055751..89aa2444d 100644
>> --- a/gnu/packages/mail.scm
>> +++ b/gnu/packages/mail.scm
>> @@ -15,7 +15,7 @@
>> ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
>> ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
>> ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
>> -;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
>> +;;; Copyright © 2016, 2017 ng0 <contact.ng0@cryptolab.net>
>> ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
>> ;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
>> ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
>> @@ -71,6 +71,7 @@
>> #:use-module (gnu packages perl)
>> #:use-module (gnu packages python)
>> #:use-module (gnu packages readline)
>> + #:use-module (gnu packages ruby)
>> #:use-module (gnu packages search)
>> #:use-module (gnu packages texinfo)
>> #:use-module (gnu packages compression)
>> @@ -83,6 +84,7 @@
>> #:use-module (gnu packages screen)
>> #:use-module (gnu packages tls)
>> #:use-module (gnu packages networking)
>> + #:use-module (gnu packages vim)
>> #:use-module (gnu packages web)
>> #:use-module (gnu packages xml)
>> #:use-module (gnu packages xorg)
>> @@ -587,6 +589,39 @@ invoking @command{notifymuch} from the post-new hook.")
>> ing, and tagging large collections of email messages.")
>> (license gpl3+)))
>>
>> +(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.
>> + `(("notmuch" ,notmuch)
>> + ("vim-full" ,vim-full)
>
> I think if someone installs this plugin, they already have vim and
> notmuch, and may want to use other versions etc. So those can be
> omitted.
>
>> + ("ruby-mail" ,ruby-mail)))
>> + (arguments
>> + `(#:tests? #f ; no "test" target
>> + ;; XXX: Replace the "vim80" folder with a dynamic name.
>> + #:make-flags (list (string-append "prefix="
>> + (assoc-ref %outputs "out")
>> + "/share/vim/vim80"))
> ^^
> You can use (version-major+minor (package-version vim)) here.
That's not the same as vim80 though... resulting structure:
.
└── share
└── vim
└── 8.0
├── doc
│ └── notmuch.txt
├── plugin
│
└── notmuch.vim
└── syntax
├── notmuch-compose.vim
├── notmuch-folders.vim
├── notmuch-git-diff.vim
├── notmuch-search.vim
└── notmuch-show.vim
vim itself uses the share/vim/vim80 directory.
>> + #: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 the Vim plugin to enable access to the
> ^^^
> s/the/a
Okay
> Otherwise LGTM.
>
>> +Notmuch mail indexing and search library in Vim.")
>> + (license gpl3+)))
>> +
>> (define-public notmuch-addrlookup-c
>> (package
>> (name "notmuch-addrlookup-c")
>> --
>> 2.11.0
--
♥Ⓐ ng0 -- https://www.inventati.org/patternsinthechaos/
next prev parent reply other threads:[~2017-01-14 17:50 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 [this message]
2017-01-15 19:16 ` Marius Bakke
2017-01-15 21:29 ` notmuch-vim ,v2 ng0
2017-01-15 21:29 ` [PATCH] gnu: Add notmuch-vim ng0
2017-01-15 21:50 ` 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=87sholedj7.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me \
--to=ng0@libertad.pw \
--cc=guix-devel@gnu.org \
--cc=mbakke@fastmail.com \
/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).