From f6978f7a150736903d80dcda5a6cdcd8ab991978 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Jan 2024 11:06:49 +0200 Subject: [PATCH] gnu: Add rust-glutin-wgl-sys-0.5. * gnu/packages/crates-graphics.scm (rust-glutin-wgl-sys-0.5): New variable. (rust-glutin-wgl-sys-0.4): Inherit from rust-glutin-wgl-sys-0.5. Change-Id: I2115df64494c5eddbda2298b11a5fa50052ba8c0 --- gnu/packages/crates-graphics.scm | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index dee52373c2..142c0e6e42 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -1696,8 +1696,28 @@ (define-public rust-glutin-glx-sys-0.1 (("rust-gl-generator" ,rust-gl-generator-0.14) ("rust-x11-dl" ,rust-x11-dl-2)))))) +(define-public rust-glutin-wgl-sys-0.5 + (package + (name "rust-glutin-wgl-sys") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "glutin_wgl_sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1b9f6qjc8gwhfxac4fpxkvv524l493f6b6q764nslpwmmjnri03c")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-gl-generator" ,rust-gl-generator-0.14)))) + (home-page "https://github.com/rust-windowing/glutin") + (synopsis "Wgl bindings for glutin") + (description "This package provides wgl bindings for glutin.") + (license license:asl2.0))) + (define-public rust-glutin-wgl-sys-0.4 (package + (inherit rust-glutin-wgl-sys-0.5) (name "rust-glutin-wgl-sys") (version "0.4.0") (source @@ -1707,14 +1727,9 @@ (define-public rust-glutin-wgl-sys-0.4 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0rc1c585ai9gav2nvdd5pn1x9gxv57yl5gg9cnyccgq3j273k2gg")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs - (("rust-gl-generator" ,rust-gl-generator-0.14)))) - (home-page "https://github.com/tomaka/glutin") - (synopsis "Wgl bindings for glutin") - (description "This package provides wgl bindings for glutin.") - (license license:asl2.0))) + (("rust-gl-generator" ,rust-gl-generator-0.14)))))) (define-public rust-glutin-wgl-sys-0.1 (package