From 23230638d9fef2b233996af462487321118f90e3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Jan 2024 11:11:49 +0200 Subject: [PATCH] gnu: Add rust-raw-window-handle-0.6. * gnu/packages/crates-graphics.scm (rust-raw-window-handle-0.6): New variable. (rust-raw-window-handle-0.5): Inherit from rust-raw-window-handle-0.6. Change-Id: Ie8d1e6ee84025e2cfb90b37b8bfb7425d614314e --- gnu/packages/crates-graphics.scm | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 989bff7b6b..0ad61a1ad6 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -2762,8 +2762,29 @@ in AVIF format (powers the @code{cavif} tool).") (list nasm)) ;for building rav1e (inputs '()))) +(define-public rust-raw-window-handle-0.6 + (package + (name "rust-raw-window-handle") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "raw-window-handle" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0i5mxxfcgqmvmzg4f0lcz68g4xfd9jybhrdkxd2v37qv1q587aa2")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-wasm-bindgen" ,rust-wasm-bindgen-0.2)))) + (home-page "https://github.com/rust-windowing/raw-window-handle") + (synopsis "Interoperability library for Rust Windowing applications") + (description + "Interoperability library for Rust Windowing applications.") + (license (list license:expat license:asl2.0 license:zlib)))) + (define-public rust-raw-window-handle-0.5 (package + (inherit rust-raw-window-handle-0.6) (name "rust-raw-window-handle") (version "0.5.2") (source @@ -2774,12 +2795,7 @@ in AVIF format (powers the @code{cavif} tool).") (sha256 (base32 "1f9k10fgda464ia1b2hni8f0sa8i0bphdsbs3di032x80qgrmzzj")))) - (build-system cargo-build-system) - (home-page "https://github.com/rust-windowing/raw-window-handle") - (synopsis "Interoperability library for Rust Windowing applications") - (description - "Interoperability library for Rust Windowing applications.") - (license license:expat))) + (arguments '()))) (define-public rust-raw-window-handle-0.4 (package