Subject: [bug#67515] [PATCH 80/91] gnu: Add rust-gbm-sys-0.2.

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

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

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

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 503716ceb6..bf483b4963 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -870,6 +870,27 @@ (define-public rust-exr-1
     (description "Read and write OpenEXR files without any unsafe code")
     (license license:bsd-3)))
 
+(define-public rust-gbm-sys-0.2
+  (package
+    (name "rust-gbm-sys")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gbm-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0rxgzvmk861q7x06js5c97qgkj81jdshisrd90a1a8vskfdvlgmn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.58)
+                       ("rust-libc" ,rust-libc-0.2))))
+    (inputs (list mesa))
+    (home-page "https://github.com/Drakulix/gbm.rs/tree/master/gbm-sys")
+    (synopsis "Bindgen generated unsafe libgbm wrapper")
+    (description "Bindgen generated unsafe libgbm wrapper")
+    (license license:expat)))
+
 (define-public rust-gfx-0.18
   (package
     (name "rust-gfx")
-- 
2.41.0