diff mbox series

[bug#74233,PATCHv2,rust-team,29/40] gnu: Add rust-gstreamer-gl-egl-sys-0.21.

Message ID 6d0a157a266ae50f6e1d22a1460dfa67d548f353.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-gtk.scm (rust-gstreamer-gl-egl-sys-0.21): New variable.

Change-Id: I17c24c591c48af3460fc268dd1ed0e86583e6117
---
 gnu/packages/crates-gtk.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index a320e8f4aa..0fcd0a5f35 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -31,6 +31,7 @@  (define-module (gnu packages crates-gtk)
   #:use-module (gnu packages crates-graphics)
   #:use-module (gnu packages crates-io)
   #:use-module (gnu packages crates-windows)
+  #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gstreamer)
@@ -3406,6 +3407,33 @@  (define-public rust-gstreamer-gl-sys-0.21
     (description "This package provides FFI bindings to libgstgl-1.0.")
     (license license:expat)))
 
+(define-public rust-gstreamer-gl-egl-sys-0.21
+  (package
+    (name "rust-gstreamer-gl-egl-sys")
+    (version "0.21.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-gl-egl-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0m79m0lbk2s89cm4vc6ckwkgs9khmh2ri7x3gfgmz2hwy2v8hg7f"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.18)
+                       ("rust-gstreamer-gl-sys" ,rust-gstreamer-gl-sys-0.21)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-system-deps" ,rust-system-deps-6))
+       #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (native-inputs (list pkg-config))
+    (inputs (list glib gstreamer gst-plugins-base mesa))
+    (home-page "https://gstreamer.freedesktop.org")
+    (synopsis "FFI bindings to libgstgl-1.0 (EGL support)")
+    (description
+     "This package provides FFI bindings to libgstgl-1.0 (EGL support).")
+    (license license:expat)))
+
 (define-public rust-gstreamer-pbutils-0.21
   (package
     (name "rust-gstreamer-pbutils")