Subject: [bug#55746] [PATCH] gnu: parinfer-rust: Copy plugin files to output.

From: calum <[email-masked]>
Date: Wed, 1 Jun 2022 17:47:10 +1200

* gnu/packages/text-editors.scm (parinfer-rust)[arguments]: Copy plugin files to output.
[home-page]: Use correct url.
---
 gnu/packages/text-editors.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index cb86a907ff..011e3bbb65 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -16,7 +16,7 @@
 ;;; Copyright © 2021 aecepoglu <[email-masked]>
 ;;; Copyright © 2021 Leo Famulari <[email-masked]>
 ;;; Copyright © 2021 Pierre Langlois <[email-masked]>
-;;; Copyright © 2021 Calum Irwin <[email-masked]>
+;;; Copyright © 2021,2022 Calum Irwin <[email-masked]>
 ;;; Copyright © 2022 Luis Henrique Gomes Higino <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -274,10 +274,17 @@ (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-extra
+        (lambda* (#:key outputs #:allow-other-keys)
+         (let ((out (assoc-ref outputs "out")))
+              (install-file "rc/parinfer.kak" (string-append out "/rc"))
+              (install-file "plugin/parinfer.vim" (string-append out "/plugin"))))))))
     (inputs
      (list clang))
-    (home-page "https://github.com/justinbarclay/parinfer-rust")
+    (home-page "https://github.com/eraserhd/parinfer-rust")
     (synopsis "Infer parentheses for Clojure, Lisp and Scheme")
     (description
      "Parinfer is a plugin for Kakoune, Vim, Neovim and Emacs that infers
-- 
2.36.0