summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(unmatched-parenthesis <paren@disroot.org>2022-03-12 22:00:30 +0000
committerGuix Patches Tester <>2022-03-12 22:02:07 +0000
commitde715ea30a77f54a9cf5ea1cd72c3ccbff59419c (patch)
tree23953b3570967880c0384d3e8e2354689e6f6a0a
parent662f1f7bbac54d5762a06862b6174977003f46b9 (diff)
downloadguix-patches-de715ea30a77f54a9cf5ea1cd72c3ccbff59419c.tar
guix-patches-de715ea30a77f54a9cf5ea1cd72c3ccbff59419c.tar.gz
gnu: rust-parinfer: add phases to install the bundled Vim and Kakoune pluginsseries-11597
* gnu/packages/text-editors.scm (rust-parinfer)[arguments]: Install the bundled Vim and Kak plugins to the correct directories. This does not _technically_ depend on #54357, but the kakoune plugin will be essentially unusable without it.
-rw-r--r--gnu/packages/text-editors.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 45cc61765a..3a6afe94fc 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -272,7 +272,18 @@ 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")