From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH 2/2] gnu: Add notmuch-vim. Date: Sat, 14 Jan 2017 18:27:14 +0100 Message-ID: <87lgud4knh.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <20170114150811.21767-1-ng0@libertad.pw> <20170114150811.21767-3-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSS6r-0001EX-MY for guix-devel@gnu.org; Sat, 14 Jan 2017 12:27:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSS6n-0001af-MD for guix-devel@gnu.org; Sat, 14 Jan 2017 12:27:21 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36844) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cSS6n-0001aI-B7 for guix-devel@gnu.org; Sat, 14 Jan 2017 12:27:17 -0500 In-Reply-To: <20170114150811.21767-3-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: ng0 , guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ng0 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 =C2=A9 2016 Lukas Gradl > ;;; Copyright =C2=A9 2016 Alex Kost > ;;; Copyright =C2=A9 2016 Troy Sankey > -;;; Copyright =C2=A9 2016 ng0 > +;;; Copyright =C2=A9 2016, 2017 ng0 > ;;; Copyright =C2=A9 2016 Cl=C3=A9ment Lassieur > ;;; Copyright =C2=A9 2016 Arun Isaac > ;;; Copyright =C2=A9 2016 John Darrington > @@ -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+))) >=20=20 > +(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=3D" > + (assoc-ref %outputs "out") > + "/share/vim/vim80")) ^^ You can use (version-major+minor (package-version vim)) here. > + #: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 Otherwise LGTM. > +Notmuch mail indexing and search library in Vim.") > + (license gpl3+))) > + > (define-public notmuch-addrlookup-c > (package > (name "notmuch-addrlookup-c") > --=20 > 2.11.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlh6X3IACgkQoqBt8qM6 VPrGLwgAoKK8FGHZk7oxgrXqFtkaECM9fQPeD8yHhYHuOKT14EPHwHXM1Wz2T26H Y8rWQsqRp3T2oUu9ccMJ9Ytvdbg54hSaRM01K1xYEE4s11E05HFBBfcn8ODnsYCB l6wHbScAJYVp1zhURz1Vo/CC/wLlFLFASEFfcAQaCDiFzdCP94iQiJ21lMaEO5y7 lXMAsLhu8MpK16F3fj8eayXI/doPoYjKFaUB0vqM9FuT1N/yuyDhmDhibe2cGXIp RSQhcHFfCnj5v1GL01MRNfTrPZAbUhMU/yoKRHYPG/bHGjBdPj9QWCky9QKfueI4 HaA/LSVkL1iGH75p4Ys5VMQnuPq0Xw== =8LiH -----END PGP SIGNATURE----- --=-=-=--