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:
Efraim Flashner 2023-11-19 13:09:14 +02:00
parent f66f05e171
commit 4624355513
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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