@@ -2005,6 +2005,7 @@ dist_patch_DATA = \
%D%/packages/patches/rustc-1.54.0-src.patch \
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
%D%/packages/patches/rust-1.70-fix-rustix-build.patch \
+ %D%/packages/patches/rust-accesskit-winit-unix-only.patch \
%D%/packages/patches/rust-cargo-edit-remove-ureq.patch \
%D%/packages/patches/rust-ring-0.17-ring-core.patch \
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
@@ -377,6 +377,32 @@ (define-public rust-accesskit-unix-0.6
accessibility infrastructure.")
(license (list license:expat license:asl2.0))))
+(define-public rust-accesskit-winit-0.16
+ (package
+ (name "rust-accesskit-winit")
+ (version "0.16.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "accesskit_winit" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0rwaz6mkllcl131b8y4s787gfmdrqzms0a242r8f3n8pra52312j"))
+ (patches (search-patches "rust-accesskit-winit-unix-only.patch"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-accesskit" ,rust-accesskit-0.12)
+ ("rust-accesskit-unix" ,rust-accesskit-unix-0.6)
+ ("rust-winit" ,rust-winit-0.29))
+ #:cargo-development-inputs (("rust-winit" ,rust-winit-0.29))))
+ (home-page "https://github.com/AccessKit/accesskit")
+ (synopsis "AccessKit UI accessibility infrastructure: winit adapter")
+ (description
+ "This package provides a winit adapter for @code{AccessKit} UI
+accessibility infrastructure.")
+ (license license:asl2.0)))
+
(define-public rust-adaptive-barrier-1
(package
(name "rust-adaptive-barrier")
new file mode 100644
@@ -0,0 +1,22 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index c382831..76b065a 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -39,7 +39,6 @@ version = "0.12.1"
+ [dependencies.winit]
+ version = "0.29"
+ features = ["rwh_06"]
+-default-features = false
+
+ [dev-dependencies.winit]
+ version = "0.29"
+@@ -64,9 +63,3 @@ tokio = ["accesskit_unix/tokio"]
+ version = "0.6.1"
+ optional = true
+ default-features = false
+-
+-[target."cfg(target_os = \"macos\")".dependencies.accesskit_macos]
+-version = "0.10.1"
+-
+-[target."cfg(target_os = \"windows\")".dependencies.accesskit_windows]
+-version = "0.15.1"