From 74130b5e1d8f54cd3d5961788bced25618bf884f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 1 Oct 2023 16:18:39 +0300 Subject: [PATCH] gnu: Add rust-cuda-std-0.2. * gnu/packages/crates-io.scm (rust-cuda-std-0.2): New variable. --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 18627b548d..6a90b4b79a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -17545,6 +17545,31 @@ re-exported cipher crate.") use with bindgen.") (license (list license:expat license:asl2.0)))) +(define-public rust-cuda-std-0.2 + (package + (name "rust-cuda-std") + (version "0.2.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "cuda-std" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "174237dj152dvndvykcn17nz2d0kdzsyyxnb6fsdz3i7xa8lfcgn")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; Test suite can't find attribute 'kernel'. + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-cuda-std-macros" ,rust-cuda-std-macros-0.2) + ("rust-half" ,rust-half-1) + ("rust-paste" ,rust-paste-1) + ("rust-vek" ,rust-vek-0.15)))) + (home-page "https://github.com/Rust-GPU/Rust-CUDA") + (synopsis "Standard library for CUDA with rustc_codegen_nvvm") + (description "Standard library for CUDA with rustc_codegen_nvvm.") + (license (list license:expat license:asl2.0)))) + (define-public rust-cuda-std-macros-0.2 (package (name "rust-cuda-std-macros")