aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomagoj Stolfa <domagoj.stolfa@gmail.com>2021-07-11 15:55:58 +0100
committerEfraim Flashner <efraim@flashner.co.il>2021-07-13 15:14:17 +0300
commit3041eb3df3057cb39da2f5133906913e2ba7dd1c (patch)
tree4ed558b661d21d6e25bbb789d8e18a1372b885ba
parentc2967eae4ee19f3c48825c613c98fe2d7e1383d8 (diff)
downloadguix-3041eb3df3057cb39da2f5133906913e2ba7dd1c.tar.gz
guix-3041eb3df3057cb39da2f5133906913e2ba7dd1c.zip
gnu: Add hyperfine.
* gnu/packages/rust-apps.scm (hyperfine): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/rust-apps.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 699d2d7059..16044ef098 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -377,6 +377,45 @@ for distinguishing different kinds of bytes such as NULL bytes, printable ASCII
characters, ASCII whitespace characters, other ASCII characters and non-ASCII.")
(license (list license:expat license:asl2.0))))
+(define-public hyperfine
+ (package
+ (name "hyperfine")
+ (version "1.11.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "hyperfine" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0m5lrvx6wwkxqdc5digm1k4diiaqcg5j4pia77s5nw1aam7k51hy"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:rust ,rust-1.46
+ #:cargo-inputs
+ (("rust-atty" ,rust-atty-0.2)
+ ("rust-cfg-if" ,rust-cfg-if-0.1)
+ ("rust-clap" ,rust-clap-2)
+ ("rust-colored" ,rust-colored-2)
+ ("rust-csv" ,rust-csv-1)
+ ("rust-indicatif" ,rust-indicatif-0.15)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-rand" ,rust-rand-0.7)
+ ("rust-rust-decimal" ,rust-rust-decimal-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-statistical" ,rust-statistical-1)
+ ("rust-version-check" ,rust-version-check-0.9)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs
+ (("rust-approx" ,rust-approx-0.3))))
+ (home-page "https://github.com/sharkdp/hyperfine")
+ (synopsis "Command-line benchmarking tool")
+ (description
+ "This package provides a command-line benchmarking tool.")
+ (license (list license:expat license:asl2.0))))
+
(define-public ripgrep
(package
(name "ripgrep")