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

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

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