diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-04-24 16:04:00 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-05-07 19:29:37 +0300 |
commit | d4b801ae8df33c06982bc3a8410954839042b33c (patch) | |
tree | 310af164c8439ed0d960ba389156d1918efdaec9 /gnu/packages | |
parent | c55ce863aae5d651a996763b8606faa276aa9c11 (diff) | |
download | guix-d4b801ae8df33c06982bc3a8410954839042b33c.tar.gz guix-d4b801ae8df33c06982bc3a8410954839042b33c.zip |
gnu: Add rust-sdl2-0.35.
* gnu/packages/crates-graphics.scm (rust-sdl2-0.35): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-graphics.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index b2947eb6c2..2a9eecc586 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -2239,6 +2239,31 @@ implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects.") (license license:expat))) +(define-public rust-sdl2-0.35 + (package + (name "rust-sdl2") + (version "0.35.2") + (source (origin + (method url-fetch) + (uri (crate-uri "sdl2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "06ivcavxhc7zyhbfmy2544dz0lnaqf33d9xf0jggpw93nrvr55gp")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ; Building requires several SDL2 inputs. + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-c-vec" ,rust-c-vec-2) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-raw-window-handle" ,rust-raw-window-handle-0.4) + ("rust-sdl2-sys" ,rust-sdl2-sys-0.35)))) + (home-page "https://github.com/Rust-SDL2/rust-sdl2") + (synopsis "SDL2 bindings for Rust") + (description "This package provides SDL2 bindings for Rust.") + (license license:expat))) + (define-public rust-sdl2-sys-0.35 (package (name "rust-sdl2-sys") |