diff options
author | Efraim Flashner <[email protected]> | 2024-11-21 15:15:03 +0200 |
---|---|---|
committer | Efraim Flashner <[email protected]> | 2024-11-28 11:05:38 +0200 |
commit | 595b843e725b9c68b40c2298b2e79d350a7e0f2d (patch) | |
tree | 7c0d5947b13f9b5b1f0cc59653ad16258c69b674 /gnu/packages/rust-apps.scm | |
parent | 0f55ba02f81091d82f4d0f3376cf31cf83e772f3 (diff) |
gnu: hyperfine: Update to 1.18.0.
* gnu/packages/rust-apps.scm (hyperfine): Update to 1.18.0.
[source]: Add snippet to allow for newer versions of dependencies.
[cargo-inputs]: Add rust-anyhow-1, rust-clap-complete-4, rust-nix-0.26,
rust-once-cell-1, rust-shell-words-1, rust-thiserror-1,
rust-windows-sys-0.48. Replace rust-clap-2 with 4, rust-indicatif-0.15
with 0.17, rust-rand-0.7 with 0.8. Remove rust-cfg-if-1,
rust-version-check-0.9, rust-winapi-0.3.
[cargo-development-inputs]: Add rust-assert-cmd-2, rust-predicates-3,
rust-tempfile-3. Replace rust-approx-0.3 with 0.5.
[arguments]: Adjust the install path for the bash completions.
Change-Id: I07343ed292adc0edcef3c45482d285d10edda7b1
Diffstat (limited to 'gnu/packages/rust-apps.scm')
-rw-r--r-- | gnu/packages/rust-apps.scm | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 19d2c4a1f5..7845744387 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -1141,16 +1141,20 @@ characters, ASCII whitespace characters, other ASCII characters and non-ASCII.") (define-public hyperfine (package (name "hyperfine") - (version "1.11.0") + (version "1.18.0") (source (origin (method url-fetch) (uri (crate-uri "hyperfine" version)) - (file-name - (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 - "0m5lrvx6wwkxqdc5digm1k4diiaqcg5j4pia77s5nw1aam7k51hy")))) + "146064gf713pwbhpwypa70921bvc62p1px5w1fq3h7zj1alzl7ay")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* (find-files "." "^Cargo\\.toml$") + (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version) + (string-append "\"^" version))))))) (build-system cargo-build-system) (arguments `(#:modules ((guix build cargo-build-system) @@ -1158,22 +1162,29 @@ characters, ASCII whitespace characters, other ASCII characters and non-ASCII.") (srfi srfi-26)) #:install-source? #f #:cargo-inputs - (("rust-atty" ,rust-atty-0.2) - ("rust-cfg-if" ,rust-cfg-if-0.1) - ("rust-clap" ,rust-clap-2) + (("rust-anyhow" ,rust-anyhow-1) + ("rust-atty" ,rust-atty-0.2) + ("rust-clap" ,rust-clap-4) + ("rust-clap-complete" ,rust-clap-complete-4) ("rust-colored" ,rust-colored-2) ("rust-csv" ,rust-csv-1) - ("rust-indicatif" ,rust-indicatif-0.15) + ("rust-indicatif" ,rust-indicatif-0.17) ("rust-libc" ,rust-libc-0.2) - ("rust-rand" ,rust-rand-0.7) + ("rust-nix" ,rust-nix-0.26) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-rand" ,rust-rand-0.8) ("rust-rust-decimal" ,rust-rust-decimal-1) ("rust-serde" ,rust-serde-1) ("rust-serde-json" ,rust-serde-json-1) + ("rust-shell-words" ,rust-shell-words-1) ("rust-statistical" ,rust-statistical-1) - ("rust-version-check" ,rust-version-check-0.9) - ("rust-winapi" ,rust-winapi-0.3)) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-windows-sys" ,rust-windows-sys-0.48)) #:cargo-development-inputs - (("rust-approx" ,rust-approx-0.3)) + (("rust-approx" ,rust-approx-0.5) + ("rust-assert-cmd" ,rust-assert-cmd-2) + ("rust-predicates" ,rust-predicates-3) + ("rust-tempfile" ,rust-tempfile-3)) #:phases (modify-phases %standard-phases (add-after 'install 'install-more @@ -1181,7 +1192,7 @@ characters, ASCII whitespace characters, other ASCII characters and non-ASCII.") (let* ((out (assoc-ref outputs "out")) (share (string-append out "/share/")) (man (string-append share "man/man1")) - (bash (string-append share "bash-completion/completions")) + (bash (string-append out "/etc/bash_completion.d/")) (fish (string-append share "fish/vendor_completions.d")) (zsh (string-append share "zsh/site-functions"))) (install-file "doc/hyperfine.1" man) |