unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "\(unmatched-parenthesis via Guix-patches" via <guix-patches@gnu.org>
To: 54357@debbugs.gnu.org
Cc: "\(unmatched-parenthesis" <paren@disroot.org>
Subject: [bug#54357] [PATCH 2/4] gnu: rust-parinfer: add phases to install the bundled Vim and Kakoune plugins
Date: Sun, 13 Mar 2022 22:16:02 +0000	[thread overview]
Message-ID: <20220313221604.7686-2-paren@disroot.org> (raw)
In-Reply-To: <20220313221604.7686-1-paren@disroot.org>

* gnu/packages/text-editors.scm (rust-parinfer)[arguments]: Install the bundled Vim and Kak plugins to the
correct directories.
---
 gnu/packages/text-editors.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 96e070807d..229e9f9112 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -292,7 +292,18 @@ (define-public parinfer-rust
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
-        ("rust-unicode-width" ,rust-unicode-width-0.1))))
+        ("rust-unicode-width" ,rust-unicode-width-0.1))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-vim-plugin
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (copy-recursively "doc" (string-append out "/share/vim/vimfiles/doc"))
+               (copy-recursively "plugin" (string-append out "/share/vim/vimfiles/plugin")))))
+         (add-after 'install-vim-plugin 'install-kak-plugin
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (copy-recursively "rc" (string-append out "/share/kak/autoload"))))))))
     (inputs
      (list clang))
     (home-page "https://github.com/justinbarclay/parinfer-rust")
-- 
2.34.0





  reply	other threads:[~2022-03-13 22:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d119bec222e729f592d4d79f8e9c3a92@disroot.org>
2022-03-12 21:09 ` [bug#54357] [PATCH] gnu: kakoune: Clean up, and add a search path that makes it possible to package kak plugins in guix. (Plugins incoming soon.) (unmatched-parenthesis via Guix-patches via
2022-03-12 22:33   ` paren--- via Guix-patches via
2022-03-12 22:40   ` [bug#54357] [PATCH] gnu: Add kak-auto-pairs (unmatched-parenthesis via Guix-patches via
2022-03-12 23:20   ` [bug#54357] [PATCH] gnu: Add kak-sudo-write (unmatched-parenthesis via Guix-patches via
2022-03-13 22:16   ` [bug#54357] [PATCH 1/4] gnu: kakoune: Clean up, and add a search path that makes it possible to package kak plugins in guix (unmatched-parenthesis via Guix-patches via
2022-03-13 22:16     ` (unmatched-parenthesis via Guix-patches via [this message]
2022-03-13 22:16     ` [bug#54357] [PATCH 3/4] gnu: Add kak-auto-pairs (unmatched-parenthesis via Guix-patches via
2022-03-13 22:16     ` [bug#54357] [PATCH 4/4] gnu: Add kak-sudo-write (unmatched-parenthesis via Guix-patches via
2022-03-14 21:56   ` [bug#54357] [PATCH 1/4] gnu: kakoune: Clean up, and add a search path that makes it possible to package kak plugins in guix (unmatched-parenthesis via Guix-patches via
2022-03-14 21:56     ` [bug#54357] [PATCH 2/4] gnu: rust-parinfer: add phases to install the bundled Vim and Kakoune plugins (unmatched-parenthesis via Guix-patches via
2022-03-14 21:56     ` [bug#54357] [PATCH 3/4] gnu: Add kak-auto-pairs (unmatched-parenthesis via Guix-patches via
2022-03-14 21:56     ` [bug#54357] [PATCH 4/4] gnu: Add kak-sudo-write (unmatched-parenthesis via Guix-patches via
2022-06-04  8:23   ` [bug#54357] Calum Irwin

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=20220313221604.7686-2-paren@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=54357@debbugs.gnu.org \
    --cc=paren@disroot.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).