Subject: [PATCH 81/91] gnu: Add rust-gbm-0.12.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:59 +0100

* gnu/packages/crates-graphics.scm (rust-gbm-0.12): New variable.

Change-Id: I139e802bb8fcbcbc3e3a0ffe5fa75d91c9718948
---
 gnu/packages/crates-graphics.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index bf483b4963..c89db5e013 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -891,6 +891,33 @@ (define-public rust-gbm-sys-0.2
     (description "Bindgen generated unsafe libgbm wrapper")
     (license license:expat)))
 
+(define-public rust-gbm-0.12
+  (package
+    (name "rust-gbm")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gbm" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1imkac49jjlng614jwyl273k9f9zadpby4a1hb7ncsc7vaf3iv7j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-drm" ,rust-drm-0.9)
+                       ("rust-drm-fourcc" ,rust-drm-fourcc-2)
+                       ("rust-gbm-sys" ,rust-gbm-sys-0.2)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-wayland-backend" ,rust-wayland-backend-0.1.3)
+                       ("rust-wayland-server" ,rust-wayland-server-0.30))
+       #:cargo-development-inputs (("rust-drm" ,rust-drm-0.9))))
+    (native-inputs (list pkg-config gtk))
+    (home-page "https://github.com/Smithay/gbm.rs")
+    (synopsis "libgbm bindings for rust")
+    (description "libgbm bindings for rust")
+    (license license:expat)))
+
 (define-public rust-gfx-0.18
   (package
     (name "rust-gfx")
-- 
2.41.0