mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 14:52:05 -05:00
gnu: hyperfine: Prepare for cross-compiling.
* gnu/packages/rust-apps.scm (hyperfine)[arguments]: Don't install the sources. Adjust the custom 'install-more phase to search for the shell completions anywhere in the target directory. Change-Id: I067c40e06e145297ceb0eb5127bdd7835033750a
This commit is contained in:
parent
f66f05e171
commit
4624355513
1 changed files with 4 additions and 3 deletions
|
@ -701,6 +701,7 @@ (define-public hyperfine
|
|||
`(#:modules ((guix build cargo-build-system)
|
||||
(guix build utils)
|
||||
(srfi srfi-26))
|
||||
#:install-source? #f
|
||||
#:cargo-inputs
|
||||
(("rust-atty" ,rust-atty-0.2)
|
||||
("rust-cfg-if" ,rust-cfg-if-0.1)
|
||||
|
@ -730,13 +731,13 @@ (define-public hyperfine
|
|||
(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$"))
|
||||
(find-files "target" "^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$"))
|
||||
(find-files "target" "^hyperfine.fish$"))
|
||||
(for-each (cut install-file <> zsh)
|
||||
(find-files "target/release/build" "^_hyperfine$"))))))))
|
||||
(find-files "target" "^_hyperfine$"))))))))
|
||||
(home-page "https://github.com/sharkdp/hyperfine")
|
||||
(synopsis "Command-line benchmarking tool")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue