[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/40: gnu: rust-xremap: Install shell completions.
From: |
guix-commits |
Subject: |
36/40: gnu: rust-xremap: Install shell completions. |
Date: |
Sun, 22 Oct 2023 09:40:37 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit b6abadfc1b0ddd05f5115643c0cd69044addab97
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 22 16:13:23 2023 +0300
gnu: rust-xremap: Install shell completions.
* gnu/packages/rust-apps.scm (rust-xremap)[arguments]: Add a phase to
install the shell completions.
---
gnu/packages/rust-apps.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 0cf7de0bf9..9c349353ec 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2545,7 +2545,30 @@ It will then write @code{fixup!} commits for each of
those changes.")
("rust-wayland-client" ,rust-wayland-client-0.30)
("rust-wayland-protocols-wlr" ,rust-wayland-protocols-wlr-0.1)
("rust-x11rb" ,rust-x11rb-0.12)
- ("rust-zbus" ,rust-zbus-1))))
+ ("rust-zbus" ,rust-zbus-1))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-completions
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share"))
+ (xremap (string-append out "/bin/xremap")))
+ (mkdir-p (string-append share "/bash-completion/completions"))
+ (with-output-to-file
+ (string-append share "/bash-completion/completions/xremap")
+ (lambda _ (invoke xremap "--completions" "bash")))
+ (mkdir-p (string-append share "/fish/vendor_completions.d"))
+ (with-output-to-file
+ (string-append share "/fish/vendor_completions.d/xremap.fish")
+ (lambda _ (invoke xremap "--completions" "fish")))
+ (mkdir-p (string-append share "/zsh/site-functions"))
+ (with-output-to-file
+ (string-append share "/zsh/site-functions/_xremap")
+ (lambda _ (invoke xremap "--completions" "zsh")))
+ (mkdir-p (string-append share "/elvish/lib"))
+ (with-output-to-file
+ (string-append share "/elvish/lib/xremap")
+ (lambda _ (invoke xremap "--completions" "elvish")))))))))
(home-page "https://github.com/k0kubun/xremap")
(synopsis "Dynamic key remapp for X and Wayland")
(description "This package provides dynamic key remapp for X and Wayland.")
- 18/40: gnu: Add rust-quick-xml-0.28., (continued)
- 18/40: gnu: Add rust-quick-xml-0.28., guix-commits, 2023/10/22
- 16/40: gnu: Add rust-serde-xml-rs-0.6., guix-commits, 2023/10/22
- 15/40: gnu: Add rust-ron-0.8., guix-commits, 2023/10/22
- 24/40: gnu: Add rust-as-raw-xcb-connection-1., guix-commits, 2023/10/22
- 32/40: gnu: Add rust-zvariant-2., guix-commits, 2023/10/22
- 30/40: gnu: Add rust-zbus-macros-1., guix-commits, 2023/10/22
- 28/40: gnu: Add rust-enumflags2-derive-0.6., guix-commits, 2023/10/22
- 33/40: gnu: Add rust-zbus-1., guix-commits, 2023/10/22
- 34/40: gnu: Add rust-zbus-polkit-1., guix-commits, 2023/10/22
- 35/40: gnu: Add rust-xremap., guix-commits, 2023/10/22
- 36/40: gnu: rust-xremap: Install shell completions.,
guix-commits <=
- 38/40: gnu: Add xremap-sway., guix-commits, 2023/10/22
- 39/40: gnu: Add xremap-x11., guix-commits, 2023/10/22
- 40/40: gnu: Add xremap-gnome., guix-commits, 2023/10/22