[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
396/475: gnu: Add rust-winit-0.28.
From: |
guix-commits |
Subject: |
396/475: gnu: Add rust-winit-0.28. |
Date: |
Sun, 7 May 2023 12:48:22 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 73c97a0a7719971f03802cbf1ccac9f13e306e5b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Apr 23 16:38:11 2023 +0300
gnu: Add rust-winit-0.28.
* gnu/packages/crates-graphics.scm (rust-winit-0.28): New variable.
(rust-winit-0.26): Inherit from rust-winit-0.28.
---
gnu/packages/crates-graphics.scm | 77 ++++++++++++++++++++++++++++++++--------
1 file changed, 63 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 554cdcf93c..d42843a43d 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -3286,8 +3286,70 @@ crate @code{rust-wayland-client} for usable bindings.")
(description "This package procides a WebP conversion library.")
(license (list license:expat license:asl2.0))))
+(define-public rust-winit-0.28
+ (package
+ (name "rust-winit")
+ (version "0.28.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winit" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0x1q4nxlr5sg0sf0fhdwg6jgb0a7rmc8skvp33v1b43v2664wl2g"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-android-activity" ,rust-android-activity-0.4)
+ ("rust-bitflags" ,rust-bitflags-1)
+ ("rust-cfg-aliases" ,rust-cfg-aliases-0.1)
+ ("rust-core-foundation" ,rust-core-foundation-0.9)
+ ("rust-core-graphics" ,rust-core-graphics-0.22)
+ ("rust-dispatch" ,rust-dispatch-0.2)
+ ("rust-instant" ,rust-instant-0.1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-mint" ,rust-mint-0.5)
+ ("rust-mio" ,rust-mio-0.8)
+ ("rust-ndk" ,rust-ndk-0.7)
+ ("rust-objc2" ,rust-objc2-0.3)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-orbclient" ,rust-orbclient-0.3)
+ ("rust-percent-encoding" ,rust-percent-encoding-2)
+ ("rust-raw-window-handle" ,rust-raw-window-handle-0.5)
+ ("rust-redox-syscall" ,rust-redox-syscall-0.3)
+ ("rust-sctk-adwaita" ,rust-sctk-adwaita-0.5)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-smithay-client-toolkit" ,rust-smithay-client-toolkit-0.16)
+ ("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)
+ ("rust-wayland-client" ,rust-wayland-client-0.29)
+ ("rust-wayland-commons" ,rust-wayland-commons-0.29)
+ ("rust-wayland-protocols" ,rust-wayland-protocols-0.29)
+ ("rust-wayland-scanner" ,rust-wayland-scanner-0.29)
+ ("rust-web-sys" ,rust-web-sys-0.3)
+ ("rust-windows-sys" ,rust-windows-sys-0.45)
+ ("rust-x11-dl" ,rust-x11-dl-2))
+ #:cargo-development-inputs
+ (("rust-console-log" ,rust-console-log-0.2)
+ ("rust-image" ,rust-image-0.24)
+ ("rust-simple-logger" ,rust-simple-logger-2)
+ ("rust-web-sys" ,rust-web-sys-0.3))))
+ (home-page "https://github.com/rust-windowing/winit")
+ (synopsis "Window creation library")
+ (description
+ "Winit is a window creation and management library. It can create
+windows and lets you handle events (for example: the window being
+resized, a key being pressed, a mouse movement, etc.) produced by
+window.
+
+Winit is designed to be a low-level brick in a hierarchy of libraries.
+Consequently, in order to show something on the window you need to use
+the platform-specific getters provided by winit, or another library.")
+ (license license:asl2.0)))
+
(define-public rust-winit-0.26
(package
+ (inherit rust-winit-0.28)
(name "rust-winit")
(version "0.26.1")
(source
@@ -3297,7 +3359,6 @@ crate @code{rust-wayland-client} for usable bindings.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0fp7cdh7llbqmm6ga8f6bzk9785jmkbyy1w631hr9faq3n9wqhwv"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -3330,19 +3391,7 @@ crate @code{rust-wayland-client} for usable bindings.")
(("rust-console-log" ,rust-console-log-0.2)
("rust-simple-logger" ,rust-simple-logger-1))))
(inputs
- (list rust-wayland-client-0.29 rust-wayland-protocols-0.29))
- (home-page "https://github.com/rust-windowing/winit")
- (synopsis "Window creation library")
- (description
- "Winit is a window creation and management library. It can create
-windows and lets you handle events (for example: the window being
-resized, a key being pressed, a mouse movement, etc.) produced by
-window.
-
-Winit is designed to be a low-level brick in a hierarchy of libraries.
-Consequently, in order to show something on the window you need to use
-the platform-specific getters provided by winit, or another library.")
- (license license:asl2.0)))
+ (list rust-wayland-client-0.29 rust-wayland-protocols-0.29))))
(define-public rust-winit-0.24
(package
- 358/475: gnu: rust-curl-sys-0.4: Update to 0.4.61+curl-8.0.1., (continued)
- 358/475: gnu: rust-curl-sys-0.4: Update to 0.4.61+curl-8.0.1., guix-commits, 2023/05/07
- 359/475: gnu: rust-lexopt: Update to 0.3.0., guix-commits, 2023/05/07
- 373/475: gnu: rust-git2-0.14: Build with correct libgit2., guix-commits, 2023/05/07
- 386/475: gnu: rust-wayland-cursor-0.29: Update to 0.29.5., guix-commits, 2023/05/07
- 365/475: gnu: rust-nom-derive-0.7: Update to 0.10.1., guix-commits, 2023/05/07
- 374/475: gnu: rust-cargo-edit: Fix build., guix-commits, 2023/05/07
- 394/475: gnu: Add rust-raw-window-handle-0.5., guix-commits, 2023/05/07
- 356/475: gnu: rust-1.68: Update to 1.68.2., guix-commits, 2023/05/07
- 372/475: gnu: rust-libgit2-sys-0.12: Update to 0.12.26., guix-commits, 2023/05/07
- 377/475: gnu: Add rust-block-sys-0.1., guix-commits, 2023/05/07
- 396/475: gnu: Add rust-winit-0.28.,
guix-commits <=
- 369/475: gnu: rust-syscallz-0.15: Update to 0.16.2., guix-commits, 2023/05/07
- 400/475: gnu: rust-memmap2-0.5: Update to 0.5.10., guix-commits, 2023/05/07
- 415/475: gnu: Add rust-indoc-2., guix-commits, 2023/05/07
- 411/475: gnu: rust-embed-resource-1: Update to 1.8.0., guix-commits, 2023/05/07
- 418/475: gnu: Add rust-orbclient-0.3., guix-commits, 2023/05/07
- 413/475: gnu: Add rust-nix-0.25., guix-commits, 2023/05/07
- 419/475: gnu: rust-serde-1: Update to 1.0.160., guix-commits, 2023/05/07
- 420/475: gnu: rust-serde-derive-1: Update to 1.0.160., guix-commits, 2023/05/07
- 417/475: gnu: Add rust-sdl2-0.35., guix-commits, 2023/05/07
- 345/475: gnu: Add rust-structmeta-derive-0.1., guix-commits, 2023/05/07