diff options
author | Luca Matei Pintilie <luca@lucamatei.com> | 2024-10-19 16:49:24 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:01 +0200 |
commit | 2463dc48bd5904a11966fd9d6070f368d56fd3e0 (patch) | |
tree | f6ce3720a18e45382294ab7ef06a0d91f19a32f4 /gnu | |
parent | e1019b38a80ad955b36842705dafdf383204cd1f (diff) | |
download | guix-2463dc48bd5904a11966fd9d6070f368d56fd3e0.tar guix-2463dc48bd5904a11966fd9d6070f368d56fd3e0.tar.gz |
gnu: Add rust-sysinfo-0.31.
* gnu/packages/crates-io.scm (rust-sysinfo-0.31): New variable.
(rust-sysinfo-0.30): Inherit from rust-sysinfo-0.31.
Change-Id: Ied41755df7ec4c991ccd05dba002232244ddddcf
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 52 |
1 files changed, 44 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index bf2a5cde6f..3df8a80235 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -79710,8 +79710,51 @@ information to the kernel using the sysctl interface.") ("rust-errno" ,rust-errno-0.2) ("rust-libc" ,rust-libc-0.2)))))) +(define-public rust-sysinfo-0.31 + (package + (name "rust-sysinfo") + (version "0.31.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "sysinfo" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1gm1d4pxwnx4gmh6kwawchv8v8djb7y0a3qvbsq09cwrhx7vwp9m")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags (list "--release" "--" + ;; These files aren't available in the build environment. + "--skip=test::check_system_info" + "--skip=test::check_uid_gid" + "--skip=test_networks" + "--skip=test_wait_non_child" + "--skip=test_process_disk_usage" + ;; I don't know why these fail + "--skip=common::network::tests::check_ip_networks" + "--skip=test_components" + "--skip=test_refresh_tasks" + "--skip=test_refresh_memory") + #:cargo-inputs (("rust-core-foundation-sys" ,rust-core-foundation-sys-0.8) + ("rust-libc" ,rust-libc-0.2) + ("rust-memchr" ,rust-memchr-2) + ("rust-ntapi" ,rust-ntapi-0.4) + ("rust-rayon" ,rust-rayon-1) + ("rust-serde" ,rust-serde-1) + ("rust-windows" ,rust-windows-0.57)) + #:cargo-development-inputs (("rust-bstr" ,rust-bstr-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/GuillaumeGomez/sysinfo") + (synopsis "System handler to interact with processes") + (description + "This package is a library to get system information such as processes, +processors, disks, components and networks.") + (license license:expat))) + (define-public rust-sysinfo-0.30 (package + (inherit rust-sysinfo-0.31) (name "rust-sysinfo") (version "0.30.7") (source @@ -79721,7 +79764,6 @@ information to the kernel using the sysctl interface.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "064d267hiqnj2jd9rmkki3fra9yjza6gr6i02qm8a2iqxy45hf0c")))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags (list "--release" "--" @@ -79740,13 +79782,7 @@ information to the kernel using the sysctl interface.") ("rust-serde" ,rust-serde-1) ("rust-windows" ,rust-windows-0.52)) #:cargo-development-inputs (("rust-serde-json" ,rust-serde-json-1) - ("rust-tempfile" ,rust-tempfile-3)))) - (home-page "https://github.com/GuillaumeGomez/sysinfo") - (synopsis "System handler to interact with processes") - (description - "This package is a library to get system information such as processes, -processors, disks, components and networks.") - (license license:expat))) + ("rust-tempfile" ,rust-tempfile-3)))))) (define-public rust-sysinfo-0.29 (package |