diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-04-24 16:03:31 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-05-07 19:29:37 +0300 |
commit | c55ce863aae5d651a996763b8606faa276aa9c11 (patch) | |
tree | 26f52024c7319eefafc44c8c5e42a4f7e2af5dee | |
parent | e21988b503de0ce8833af0942604904c6ce47b87 (diff) |
gnu: Add rust-sdl2-sys-0.35.
* gnu/packages/crates-graphics.scm (rust-sdl2-sys-0.35): New variable.
-rw-r--r-- | gnu/packages/crates-graphics.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 2904a080cb..b2947eb6c2 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -2239,6 +2239,37 @@ implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects.") (license license:expat))) +(define-public rust-sdl2-sys-0.35 + (package + (name "rust-sdl2-sys") + (version "0.35.2") + (source (origin + (method url-fetch) + (uri (crate-uri "sdl2-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1w7ranfpmbvsnviq0y8d1cz9pajp8c4b84lslycq02kcrzi6nn73")) + (modules '((guix build utils))) + (snippet + '(begin (delete-file-recursively "SDL"))))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t ; Building requires several SDL2 inputs. + #:cargo-inputs + (("rust-bindgen" ,rust-bindgen-0.53) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-cmake" ,rust-cmake-0.1) + ("rust-flate2" ,rust-flate2-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-pkg-config" ,rust-pkg-config-0.3) + ("rust-vcpkg" ,rust-vcpkg-0.2) + ("rust-version-compare" ,rust-version-compare-0.1)))) + (home-page "https://github.com/rust-sdl2/rust-sdl2") + (synopsis "Raw SDL2 bindings for Rust, used internally rust-sdl2") + (description "This package provides raw SDL2 bindings for Rust, used +internally rust-sdl2.") + (license license:expat))) + (define-public rust-smithay-client-toolkit-0.16 (package (name "rust-smithay-client-toolkit") |