guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

29/69: gnu: Add rust-spirv-std-0.4.


From: guix-commits
Subject: 29/69: gnu: Add rust-spirv-std-0.4.
Date: Thu, 11 Nov 2021 10:43:26 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit fb4340e1eeb7624828c8112020924883bcf049f2
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Nov 10 10:34:02 2021 +0000

    gnu: Add rust-spirv-std-0.4.
    
    * gnu/packages/crates-io.scm (rust-spirv-std-0.4): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a534a04..a95f3ad 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48839,6 +48839,33 @@ and spirv-std-macros.")
     (description "This package provides macros for spirv-std.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-spirv-std-0.4
+  (package
+    (name "rust-spirv-std")
+    ;; We use a slightly older version here, because of problems building glam
+    ;; 0.13.1 with more recent versions.
+    (version "0.4.0-alpha.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "spirv-std" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "14npd838bqnw09iab0zq94xs4yl69m6c0cdfzxa9fal0zxqlqv3j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-num-traits" ,rust-num-traits-0.2)
+        ("rust-spirv-std-macros" ,rust-spirv-std-macros-0.4)
+        ("rust-spirv-types" ,rust-spirv-types-0.4))))
+    (home-page "https://github.com/EmbarkStudios/rust-gpu";)
+    (synopsis "Standard functions and types for SPIR-V")
+    (description "This package provides standard functions and types for
+SPIR-V.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-spmc-0.3
   (package
     (name "rust-spmc")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]