Subject: [bug#69803] [PATCH rust-team 18/37] gnu: Add rust-x11rb-0.9.

From: Herman Rimm <[email-masked]>
Date: Thu, 14 Mar 2024 22:16:19 +0100

* gnu/packages/crates-graphics.scm (rust-x11rb-0.9): Add variable.

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

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index f95a4a65cd..cb2d6eeeb9 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -5520,6 +5520,28 @@ (define-public rust-x11rb-0.10
         ("rust-winapi-wsapoll" ,rust-winapi-wsapoll-0.1)
         ("rust-x11rb-protocol" ,rust-x11rb-protocol-0.10))))))
 
+(define-public rust-x11rb-0.9
+  (package
+    (inherit rust-x11rb-0.10)
+    (name "rust-x11rb")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "x11rb" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "12kdvzjfdbv9nkliq9lk6jd70f71q1qaiya24fjy4flbciavx6bf"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-gethostname" ,rust-gethostname-0.2)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-libloading" ,rust-libloading-0.7)
+        ("rust-nix" ,rust-nix-0.22)
+        ("rust-once-cell" ,rust-once-cell-1)
+        ("rust-winapi" ,rust-winapi-0.3)
+        ("rust-winapi-wsapoll" ,rust-winapi-wsapoll-0.1))))))
+
 (define-public rust-x11rb-0.8
   (package
     (inherit rust-x11rb-0.10)
-- 
2.41.0