From b42035f5c51b83748351791b00bd9fcec2e7c417 Mon Sep 17 00:00:00 2001 From: Divya Ranjan Date: Sun, 5 Jan 2025 07:03:49 +0000 Subject: [PATCH] gnu: Add rust-nvml-wrapper-0.10. * gnu/packages/crates-io.scm (rust-nvml-wrapper-0.10): New variable. Signed-off-by: Efraim Flashner Change-Id: I304322af0d1f841edd442196e429bee1bf0f172f --- gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 4b1518d39d..af938582aa 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -48052,6 +48052,36 @@ (define-public rust-numtoa-0.1 "1vs9rhggqbql1p26x8nkha1j06wawwgb2jp5fs88b5gi7prvvy5q")))) (arguments '(#:tests? #f)))) +(define-public rust-nvml-wrapper-0.10 + (package + (name "rust-nvml-wrapper") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nvml-wrapper" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1i9q80f8x5zy646wvz1wkaydryvnfnwsi8jy72hh92fll45gz6qc")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Tests expect libnvidia-ml.so from the NVIDIA driver + #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) + ("rust-libloading" ,rust-libloading-0.8) + ("rust-nvml-wrapper-sys" ,rust-nvml-wrapper-sys-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-static-assertions" ,rust-static-assertions-1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-wrapcenum-derive" ,rust-wrapcenum-derive-0.4)) + #:cargo-development-inputs (("rust-pretty-bytes" ,rust-pretty-bytes-0.2)))) + (home-page "https://github.com/Cldfire/nvml-wrapper") + (synopsis "Rust wrapper for the NVIDIA Management Library") + (description + "This package provides a safe and ergonomic Rust wrapper for the NVIDIA +Management Library.") + (license (list license:expat license:asl2.0)))) + (define-public rust-oauth2-types-0.7 (package (name "rust-oauth2-types")