diff mbox series

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

Message ID DU2P193MB21326169C46BCD735D14A646F3BCA@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-sys-0.2): New variable.

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

Patch

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