[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/23: gnu: exa: Install extras.
From: |
guix-commits |
Subject: |
20/23: gnu: exa: Install extras. |
Date: |
Thu, 6 Feb 2020 03:56:57 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit b76473ecfd1274d37514c76764f5f107c7af6268
Author: Efraim Flashner <address@hidden>
AuthorDate: Wed Feb 5 23:27:38 2020 +0200
gnu: exa: Install extras.
* gnu/packages/rust-apps.scm (exa)[arguments]: Add phase to install man
page and shell completions.
---
gnu/packages/rust-apps.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 108d2fb..118f914 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -96,7 +96,23 @@
(("test!\\(leg:.*") "")
(("test!\\(lid:.*") "")
(("test!\\(original_g:.*") ""))
- #t)))))
+ #t))
+ (add-after 'install 'install-extras
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share"))
+ (man1 (string-append share "/man/man1")))
+ (install-file "contrib/man/exa.1" man1)
+ (mkdir-p (string-append out "/etc/bash_completion.d"))
+ (mkdir-p (string-append share "/fish/vendor_completions.d"))
+ (mkdir-p (string-append share "/zsh/site-functions"))
+ (copy-file "contrib/completions.bash"
+ (string-append out "/etc/bash_completion.d/exa"))
+ (copy-file "contrib/completions.fish"
+ (string-append share
"/fish/vendor_completions.d/exa.fish"))
+ (copy-file "contrib/completions.zsh"
+ (string-append share "/zsh/site-functions/_exa"))
+ #t))))))
(inputs
`(("libgit2" ,libgit2)
("zlib" ,zlib)))
- 12/23: gnu: Add rust-users-0.9., (continued)
- 12/23: gnu: Add rust-users-0.9., guix-commits, 2020/02/06
- 17/23: gnu: rust-tempdir-0.3: Don't hide package., guix-commits, 2020/02/06
- 18/23: gnu: rust-libgit2-0.9: Don't skip build., guix-commits, 2020/02/06
- 13/23: gnu: Add rust-zoneinfo-compiled-0.4., guix-commits, 2020/02/06
- 15/23: gnu: Remove rust-openssl-src-111., guix-commits, 2020/02/06
- 10/23: gnu: libgit2-sys-0.8: Unbundle vendored code., guix-commits, 2020/02/06
- 14/23: gnu: rust-openssl-sys-0.9: Don't skip build., guix-commits, 2020/02/06
- 16/23: gnu: rust-libssh2-sys-0.2: Don't skip build., guix-commits, 2020/02/06
- 21/23: gnu: rust-libgit2-0.11: Don't skip build., guix-commits, 2020/02/06
- 23/23: gnu: rust-cbindgen: Update to 0.13.0., guix-commits, 2020/02/06
- 20/23: gnu: exa: Install extras.,
guix-commits <=
- 22/23: gnu: screen: Update to 4.8.0., guix-commits, 2020/02/06
- 19/23: gnu: Add exa., guix-commits, 2020/02/06