[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] gnu: Add notmuch-vim.
From: |
Marius Bakke |
Subject: |
Re: [PATCH 2/2] gnu: Add notmuch-vim. |
Date: |
Sun, 15 Jan 2017 20:16:24 +0100 |
User-agent: |
Notmuch/0.23.5 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu) |
ng0 <address@hidden> writes:
> Marius Bakke <address@hidden> writes:
>
>> ng0 <address@hidden> 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 <address@hidden>
>>> ;;; Copyright © 2016 Alex Kost <address@hidden>
>>> ;;; Copyright © 2016 Troy Sankey <address@hidden>
>>> -;;; Copyright © 2016 ng0 <address@hidden>
>>> +;;; Copyright © 2016, 2017 ng0 <address@hidden>
>>> ;;; Copyright © 2016 Clément Lassieur <address@hidden>
>>> ;;; Copyright © 2016 Arun Isaac <address@hidden>
>>> ;;; Copyright © 2016 John Darrington <address@hidden>
>>> @@ -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:
Oops, you're right. I forgot that the dot was included. Let's just keep
it 'hard-coded' for now. We can add a helper function to determine the
correct directory if/when this becomes a problem / recurring theme.
Yet another reason to put it in vim.scm.. ;-)
signature.asc
Description: PGP signature
Re: [PATCH 2/2] gnu: Add notmuch-vim., Marius Bakke, 2017/01/14
- Re: [PATCH 2/2] gnu: Add notmuch-vim., ng0, 2017/01/14
- Re: [PATCH 2/2] gnu: Add notmuch-vim.,
Marius Bakke <=
- notmuch-vim ,v2, ng0, 2017/01/15
- [PATCH] gnu: Add notmuch-vim., ng0, 2017/01/15
- Re: [PATCH] gnu: Add notmuch-vim., Marius Bakke, 2017/01/15
- Re: [PATCH] gnu: Add notmuch-vim., ng0, 2017/01/15
- Re: [PATCH] gnu: Add notmuch-vim., Marius Bakke, 2017/01/15
- notmuch-vim, ruby-notmuch., ng0, 2017/01/16
- [PATCH 1/2] gnu: Add ruby-notmuch., ng0, 2017/01/16
- Re: [PATCH 1/2] gnu: Add ruby-notmuch., Marius Bakke, 2017/01/18
- Message not available
- Message not available
- Re: [PATCH 1/2] gnu: Add ruby-notmuch., ng0, 2017/01/18
[PATCH 2/2] gnu: Add notmuch-vim., ng0, 2017/01/16