From ef4a797d4287f5ab58dd506dcceb4071d80487c1 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Nov 2024 09:48:52 +0200 Subject: [PATCH] gnu: Add rust-glutin-egl-sys-0.7. * gnu/packages/crates-graphics.scm (rust-glutin-egl-sys-0.7): New variable. (rust-glutin-egl-sys-0.6): Inherit from rust-glutin-egl-sys-0.7. Change-Id: I889a13e2baa9e09032b562cad47467fbcddbaa84 --- 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 ea0ee6268a..ecc634c3d0 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -1918,8 +1918,29 @@ (define-public rust-glutin-0.21 ("rust-winapi" ,rust-winapi-0.3) ("rust-winit" ,rust-winit-0.19)))))) +(define-public rust-glutin-egl-sys-0.7 + (package + (name "rust-glutin-egl-sys") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "glutin_egl_sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09y80579kyzkrk7smghmnyx2amddzvjah7wczgkdnl189pzrzsfa")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-gl-generator" ,rust-gl-generator-0.14) + ("rust-windows-sys" ,rust-windows-sys-0.52)))) + (home-page "https://github.com/rust-windowing/glutin") + (synopsis "Egl bindings for glutin") + (description "This package provides the egl bindings for glutin.") + (license license:asl2.0))) + (define-public rust-glutin-egl-sys-0.6 (package + (inherit rust-glutin-egl-sys-0.7) (name "rust-glutin-egl-sys") (version "0.6.0") (source @@ -1929,14 +1950,9 @@ (define-public rust-glutin-egl-sys-0.6 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1kcv5pdpdsyhzpiahga15kk7yd4m64ia2k6xqcrz97ihylimdk3p")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-gl-generator" ,rust-gl-generator-0.14) - ("rust-windows-sys" ,rust-windows-sys-0.48)))) - (home-page "https://github.com/rust-windowing/glutin") - (synopsis "Egl bindings for glutin") - (description "The egl bindings for glutin.") - (license license:asl2.0))) + ("rust-windows-sys" ,rust-windows-sys-0.48)))))) (define-public rust-glutin-egl-sys-0.5 (package