[PATCH] gnu: parinfer-rust: Copy plugin files to output.

OpenSubmitted by calum.
Details
One participant
  • calum
Owner
unassigned
Severity
normal
C
(address . guix-patches@gnu.org)(name . calum)(address . calumirwin1@gmail.com)
20220601054710.17297-1-calumirwin1@gmail.com
* 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(-)

Toggle diff (35 lines)
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 <aecepoglu@fastmail.fm>
 ;;; Copyright © 2021 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
-;;; Copyright © 2021 Calum Irwin <calumirwin1@gmail.com>
+;;; Copyright © 2021,2022 Calum Irwin <calumirwin1@gmail.com>
 ;;; Copyright © 2022 Luis Henrique Gomes Higino <luishenriquegh2701@gmail.com>
 ;;;
 ;;; 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
C
C
Calum Irwin wrote on 4 Jun 10:09 +0200
(address . 55746@debbugs.gnu.org)
CAH+jhzFB3wxcdQyUeQ-RosnaEqvOrMY=RYEfEGXMupTSO3YLHg@mail.gmail.com
This is a duplicate of
you can probably close this issue
?