gnu: Add rust-glam-0.24.

* gnu/packages/crates-io.scm (rust-glam-0.24): New variable.
(rust-glam-0.17): Inherit from rust-glam-0.24.
This commit is contained in:
Efraim Flashner 2023-10-01 16:25:26 +03:00
parent eb6705d441
commit 0cd7a50562
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -28128,8 +28128,44 @@ (define-public rust-gjson-0.8
(description "Gjson is a JSON parser for Rust.") (description "Gjson is a JSON parser for Rust.")
(license license:expat))) (license license:expat)))
(define-public rust-glam-0.24
(package
(name "rust-glam")
(version "0.24.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "glam" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0ibrq68ldg1gyynb5ss5hx0gr6p3397cfclh1xrl5prba4bqqhdm"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-approx" ,rust-approx-0.5)
("rust-bytecheck" ,rust-bytecheck-0.6)
("rust-bytemuck" ,rust-bytemuck-1)
("rust-libm" ,rust-libm-0.2)
("rust-mint" ,rust-mint-0.5)
("rust-rand" ,rust-rand-0.8)
("rust-rkyv" ,rust-rkyv-0.7)
("rust-serde" ,rust-serde-1))
#:cargo-development-inputs
(("rust-criterion" ,rust-criterion-0.4)
("rust-rand-xoshiro" ,rust-rand-xoshiro-0.6)
("rust-rkyv" ,rust-rkyv-0.7)
("rust-serde-json" ,rust-serde-json-1)
("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3))))
(home-page "https://github.com/bitshifter/glam-rs")
(synopsis "3D math library for games and graphics")
(description
"This package provides a simple and fast 3D math library for games and
graphics.")
(license (list license:expat license:asl2.0))))
(define-public rust-glam-0.17 (define-public rust-glam-0.17
(package (package
(inherit rust-glam-0.24)
(name "rust-glam") (name "rust-glam")
(version "0.17.3") (version "0.17.3")
(source (source
@ -28139,7 +28175,6 @@ (define-public rust-glam-0.17
(file-name (string-append name "-" version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "0xm7jdygbxchdvk6k1l1pdag843nkwdm8fikwgp0i1gxgawk45z0")))) (base32 "0xm7jdygbxchdvk6k1l1pdag843nkwdm8fikwgp0i1gxgawk45z0"))))
(build-system cargo-build-system)
(arguments (arguments
`(#:skip-build? #t `(#:skip-build? #t
#:cargo-inputs #:cargo-inputs
@ -28148,13 +28183,7 @@ (define-public rust-glam-0.17
("rust-mint" ,rust-mint-0.5) ("rust-mint" ,rust-mint-0.5)
("rust-num-traits" ,rust-num-traits-0.2) ("rust-num-traits" ,rust-num-traits-0.2)
("rust-rand" ,rust-rand-0.8) ("rust-rand" ,rust-rand-0.8)
("rust-serde" ,rust-serde-1)))) ("rust-serde" ,rust-serde-1))))))
(home-page "https://github.com/bitshifter/glam-rs")
(synopsis "3D math library for games and graphics")
(description
"This package provides a simple and fast 3D math library for games and
graphics.")
(license (list license:expat license:asl2.0))))
(define-public rust-glam-0.16 (define-public rust-glam-0.16
(package (package