diff mbox series

[bug#67515,61/91] gnu: Add rust-drm-0.9.

Message ID DU2P193MB21329A1F8075ABB1C7BA2FAEF3BCA@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-io.scm (rust-drm-0.9): New variable.

Change-Id: I2ac8511b59acd96e5f88319ff8c881aebf91b465
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c3106c0e1f..d55ce44517 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22739,6 +22739,32 @@  (define-public rust-drm-ffi-0.5
      "Safe, low-level bindings to the Direct Rendering Manager API")
     (license license:expat)))
 
+(define-public rust-drm-0.9
+  (package
+    (name "rust-drm")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "drm" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0vzmknzhp12xp86phhnm0cs4jdq0ilxmgsybwk2x1v5wyjg1bygd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-bytemuck" ,rust-bytemuck-1)
+                       ("rust-drm-ffi" ,rust-drm-ffi-0.5)
+                       ("rust-drm-fourcc" ,rust-drm-fourcc-2)
+                       ("rust-nix" ,rust-nix-0.26))
+       #:cargo-development-inputs (("rust-image" ,rust-image-0.23)
+                                   ("rust-rustyline" ,rust-rustyline-8))))
+    (home-page "https://github.com/Smithay/drm-rs")
+    (synopsis "Safe, low-level bindings to the Direct Rendering Manager API")
+    (description
+     "Safe, low-level bindings to the Direct Rendering Manager API")
+    (license license:expat)))
+
 (define-public rust-drop-bomb-0.1
   (package
     (name "rust-drop-bomb")