diff mbox series

[bug#69257,rust-team,v3,61/75] gnu: Add rust-gstreamer-gl-sys-0.21.

Message ID fe8710aea2b47f96a03cbb17b5b24251d5dad384.1714820130.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:35 a.m. UTC
* gnu/packages/crates-gtk.scm (rust-gstreamer-gl-sys-0.21): Add
variable.

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

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index a7c0ead88d..ea59b526d6 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -30,6 +30,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)
@@ -2621,6 +2622,38 @@  (define-public rust-gstreamer-base-sys-0.18
        (("rust-shell-words" ,rust-shell-words-1)
         ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-gstreamer-gl-sys-0.21
+  (package
+    (name "rust-gstreamer-gl-sys")
+    (version "0.21.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-gl-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1kgi8rrlw2qx1p6q9ybk52wxpjn5wscx84lqfg4ng9lr7hdrg06m"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-development-inputs
+       (("rust-shell-words" ,rust-shell-words-1)
+        ("rust-tempfile" ,rust-tempfile-3))
+       #:cargo-inputs
+       (("rust-glib-sys" ,rust-glib-sys-0.18)
+        ("rust-gobject-sys" ,rust-gobject-sys-0.18)
+        ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.21)
+        ("rust-gstreamer-sys" ,rust-gstreamer-sys-0.21)
+        ("rust-gstreamer-video-sys" ,rust-gstreamer-video-sys-0.21)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-system-deps" ,rust-system-deps-6))))
+    (native-inputs (list pkg-config))
+    (inputs (list glib gst-plugins-base gstreamer mesa))
+    (home-page "https://gstreamer.freedesktop.org")
+    (synopsis "FFI bindings to libgstgl-1.0")
+    (description "This package provides FFI bindings to libgstgl-1.0.")
+    (license license:expat)))
+
 (define-public rust-gstreamer-pbutils-0.21
   (package
     (name "rust-gstreamer-pbutils")