From 175b6e2e0fb4dcaf70181646430da403c004a100 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Nov 2024 09:49:19 +0200 Subject: [PATCH] gnu: Add rust-glutin-glx-sys-0.6. * gnu/packages/crates-graphics.scm (rust-glutin-glx-sys-0.6): New variable. (rust-glutin-glx-sys-0.5): Inherit from rust-glutin-glx-sys-0.6. Change-Id: I1942c1bab73f98c8e25dd89eadcefac19a767cca --- 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 ecc634c3d0..430eabadbf 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -2046,8 +2046,29 @@ (define-public rust-glutin-gles2-sys-0.1 (description "This package provides gles2 bindings for glutin.") (license license:asl2.0))) +(define-public rust-glutin-glx-sys-0.6 + (package + (name "rust-glutin-glx-sys") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "glutin_glx_sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0qscs9525kpdwaky5cm6smkyrrlg9sv5xdcnhzh1hvp730wjsaww")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-gl-generator" ,rust-gl-generator-0.14) + ("rust-x11-dl" ,rust-x11-dl-2)))) + (home-page "https://github.com/rust-windowing/glutin") + (synopsis "Glx bindings for glutin") + (description "This package provides the glx bindings for glutin.") + (license license:asl2.0))) + (define-public rust-glutin-glx-sys-0.5 (package + (inherit rust-glutin-glx-sys-0.6) (name "rust-glutin-glx-sys") (version "0.5.0") (source @@ -2057,14 +2078,9 @@ (define-public rust-glutin-glx-sys-0.5 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0krv3chf5sy83rsfwq267paczskpwnb5gcw0agac5p0hdilgsrd1")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-gl-generator" ,rust-gl-generator-0.14) - ("rust-x11-dl" ,rust-x11-dl-2)))) - (home-page "https://github.com/rust-windowing/glutin") - (synopsis "Glx bindings for glutin") - (description "This package provides glx bindings for glutin.") - (license license:asl2.0))) + ("rust-x11-dl" ,rust-x11-dl-2)))))) (define-public rust-glutin-glx-sys-0.4 (package