guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#74233] [PATCH rust-team v4 03/15] gnu: Add rust-gstreamer-allocator


From: Aaron Covrig
Subject: [bug#74233] [PATCH rust-team v4 03/15] gnu: Add rust-gstreamer-allocators-sys-0.21.
Date: Wed, 4 Dec 2024 19:17:36 -0500

From: Giacomo Leidi <goodoldpaul@autistici.org>

* gnu/packages/crates-gtk.scm (rust-gstreamer-allocators-sys-0.21): New 
variable.
---
 gnu/packages/crates-gtk.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 49bfd87a5b..6d1db420e7 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3073,6 +3073,35 @@ (define-public rust-gstreamer-0.18
               ("rust-ron" ,rust-ron-0.7)
               ("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-gstreamer-allocators-sys-0.21
+  (package
+    (name "rust-gstreamer-allocators-sys")
+    (version "0.21.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-allocators-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1brps4xpzigavifcwr6hs6368nilc4l03ivnv13fxb2svdw885f1"))))
+    (build-system cargo-build-system)
+    (arguments
+     ;; error: ?GstShmAllocatorClass? undeclared
+     `(#:tests? #f
+       #:cargo-inputs (("rust-glib-sys" ,rust-glib-sys-0.18)
+                       ("rust-gobject-sys" ,rust-gobject-sys-0.18)
+                       ("rust-gstreamer-sys" ,rust-gstreamer-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))
+    (home-page "https://gstreamer.freedesktop.org";)
+    (synopsis "FFI bindings to libgstallocators-1.0")
+    (description "This package provides FFI bindings to libgstallocators-1.0.")
+    (license license:expat)))
+
 (define-public rust-gstreamer-app-0.18
   (package
     (name "rust-gstreamer-app")
-- 
2.47.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]