From acd26696fe90ed0de8fc84bd6b23cf953aabef33 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 24 Apr 2023 16:10:43 +0300 Subject: [PATCH] gnu: Add rust-glutin-egl-sys-0.4. * gnu/packages/crates-graphics.scm (rust-glutin-egl-sys-0.4): New variable. (rust-glutin-egl-sys-0.1): Inherit from rust-glutin-egl-sys-0.4. --- gnu/packages/crates-graphics.scm | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 2a9eecc586..02a6c4e4bc 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -1190,8 +1190,32 @@ (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.4 + (package + (name "rust-glutin-egl-sys") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "glutin-egl-sys" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0z9nm3d6qcgqg7f6qkbnsfs4cy90d8raw09inf2qc564nnmz1ap5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-gl-generator" ,rust-gl-generator-0.14) + ("rust-windows-sys" ,rust-windows-sys-0.45)))) + (home-page "https://github.com/rust-windowing/glutin") + (synopsis "Egl bindings for glutin") + (description "The egl bindings for glutin.") + (license license:asl2.0))) + (define-public rust-glutin-egl-sys-0.1 (package + (inherit rust-glutin-egl-sys-0.4) (name "rust-glutin-egl-sys") (version "0.1.5") (source @@ -1203,15 +1227,10 @@ (define-public rust-glutin-egl-sys-0.1 (sha256 (base32 "04f2ci9kb8q4dv4kviigvgfy54lr4jmbnmjsvi50qj13anjnmfra")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-winapi" ,rust-winapi-0.3) - ("rust-gl-generator" ,rust-gl-generator-0.13)))) - (home-page "https://github.com/rust-windowing/glutin") - (synopsis "Egl bindings for glutin") - (description "The egl bindings for glutin.") - (license license:asl2.0))) + ("rust-gl-generator" ,rust-gl-generator-0.13)))))) (define-public rust-glutin-emscripten-sys-0.1 (package