diff mbox series

[bug#74233,PATCHv2,rust-team,20/40] gnu: Add rust-khronos-egl-5.

Message ID 3e13d19f3ba2bc01baefe81df21519a26efaad15.1731018145.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74233,PATCHv2,rust-team,01/40] gnu: Add rust-search-provider-0.8. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:22 p.m. UTC
* gnu/packages/crates-graphics.scm (rust-khronos-egl-5): New variable.

Change-Id: I37f5b4e4a08d51e7dd2b7d6638b5f2c8c9e87c90
---
 gnu/packages/crates-graphics.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 6c8e42cdda..f08ef1e5b1 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -16,6 +16,7 @@ 
 ;;; Copyright © 2023, 2024 Jaeme Sifat <jaeme@runbox.com>
 ;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
 ;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2024 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2371,6 +2372,35 @@  (define-public rust-keyframe-1
 @end enumerate")
     (license license:expat)))
 
+(define-public rust-khronos-egl-5
+  (package
+    (name "rust-khronos-egl")
+    (version "5.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "khronos-egl" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1qw31jzaly1kcn2smicmcm6g4y5sh0y5l8fnaca85ssaq0b2nf6i"))))
+    (build-system cargo-build-system)
+    (arguments
+     ;; error: doctest failed
+     `(#:tests? #f
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-libloading" ,rust-libloading-0.8)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))
+       #:cargo-development-inputs (("rust-gl" ,rust-gl-0.14)
+                                   ("rust-wayland-client" ,rust-wayland-client-0.28)
+                                   ("rust-wayland-egl" ,rust-wayland-egl-0.28)
+                                   ("rust-wayland-protocols" ,rust-wayland-protocols-0.28))))
+    (native-inputs (list pkg-config wayland))
+    (inputs (list mesa))
+    (home-page "https://github.com/timothee-haudebourg/khronos-egl")
+    (synopsis "Rust bindings for EGL")
+    (description "This package provides Rust bindings for EGL.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-libdav1d-sys-0.6
   (package
     (name "rust-libdav1d-sys")