[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/23: gnu: hyperfine: Install completions.
From: |
guix-commits |
Subject: |
23/23: gnu: hyperfine: Install completions. |
Date: |
Tue, 13 Jul 2021 08:16:13 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 61a8c913685d0485369b0009cb2cc4dd764d7d4f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 13 15:13:07 2021 +0300
gnu: hyperfine: Install completions.
* gnu/packages/rust-apps.scm (hyperfine)[arguments]: Add custom
'install-more phase to install manpage and shell completions.
---
gnu/packages/rust-apps.scm | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 16044ef..7aabc12 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -393,6 +393,9 @@ characters, ASCII whitespace characters, other ASCII
characters and non-ASCII.")
(build-system cargo-build-system)
(arguments
`(#:rust ,rust-1.46
+ #:modules ((guix build cargo-build-system)
+ (guix build utils)
+ (srfi srfi-26))
#:cargo-inputs
(("rust-atty" ,rust-atty-0.2)
("rust-cfg-if" ,rust-cfg-if-0.1)
@@ -409,7 +412,26 @@ characters, ASCII whitespace characters, other ASCII
characters and non-ASCII.")
("rust-version-check" ,rust-version-check-0.9)
("rust-winapi" ,rust-winapi-0.3))
#:cargo-development-inputs
- (("rust-approx" ,rust-approx-0.3))))
+ (("rust-approx" ,rust-approx-0.3))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-more
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share/"))
+ (man (string-append share "man/man1"))
+ (bash (string-append share "bash-completion/completions"))
+ (fish (string-append share "fish/vendor_completions.d"))
+ (zsh (string-append share "zsh/site-functions")))
+ (install-file "doc/hyperfine.1" man)
+ (for-each (cut install-file <> bash)
+ (find-files "target/release/build" "^hyperfine.bash$"))
+ (rename-file (string-append bash "/hyperfine.bash")
+ (string-append bash "/hyperfine"))
+ (for-each (cut install-file <> fish)
+ (find-files "target/release/build" "^hyperfine.fish$"))
+ (for-each (cut install-file <> zsh)
+ (find-files "target/release/build"
"^_hyperfine$"))))))))
(home-page "https://github.com/sharkdp/hyperfine")
(synopsis "Command-line benchmarking tool")
(description
- 19/23: gnu: Add rust-statistical-1., (continued)
- 19/23: gnu: Add rust-statistical-1., guix-commits, 2021/07/13
- 10/23: gnu: Add rust-hmac-0.11., guix-commits, 2021/07/13
- 14/23: gnu: Add rust-geo-types-0.6., guix-commits, 2021/07/13
- 16/23: gnu: Add rust-socket2-0.4., guix-commits, 2021/07/13
- 17/23: gnu: Add rust-tokio-postgres-0.7., guix-commits, 2021/07/13
- 07/23: gnu: Add rust-cipher-0.3., guix-commits, 2021/07/13
- 11/23: gnu: Add rust-hmac-0.10., guix-commits, 2021/07/13
- 18/23: gnu: Add rust-postgres-0.19., guix-commits, 2021/07/13
- 21/23: gnu: Add rust-colored-2., guix-commits, 2021/07/13
- 22/23: gnu: Add hyperfine., guix-commits, 2021/07/13
- 23/23: gnu: hyperfine: Install completions.,
guix-commits <=
- 20/23: gnu: Add rust-rust-decimal-1., guix-commits, 2021/07/13