diff mbox series

[bug#67515,81/91] gnu: Add rust-gbm-0.12.

Message ID DU2P193MB213235768B3DF8BBE840AD44F3BCA@DU2P193MB2132.EURP193.PROD.OUTLOOK.COM
State New
Headers show
Series [bug#67515,01/91] gnu: Add blueprint-compiler-next. | expand

Commit Message

Sergio Pastor PĂ©rez Nov. 28, 2023, 9:12 p.m. UTC
* 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 mbox series

Patch

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")