Subject: [PATCH 3/3] gnu: Add rust-xkbcommon-0.5.

From: Troy Figiel <[email-masked]>
Date: Sun, 7 Jan 2024 12:49:27 +0100

* gnu/packages/crates-io.scm (rust-xkbcommon-0.5): New variable.
---
 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 bb52318538..4f5966ef25 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2023 Wilko Meyer <[email-masked]>
 ;;; Copyright © 2023 Jaeme Sifat <[email-masked]>
 ;;; Copyright © 2023 Steve George <[email-masked]>
+;;; Copyright © 2024 Troy Figiel <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -103,6 +104,7 @@ (define-module (gnu packages crates-io)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
+  #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages webkit)
@@ -90486,6 +90488,30 @@ (define-public rust-xi-unicode-0.3
 including a line breaking iterator.")
     (license license:asl2.0)))
 
+(define-public rust-xkbcommon-0.5
+  (package
+    (name "rust-xkbcommon")
+    (version "0.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "xkbcommon" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "123b96fbp693z43z2f2gbadb9dzf523n2d21j3izcaz9k6sjbnsj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-as-raw-xcb-connection" ,rust-as-raw-xcb-connection-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-memmap2" ,rust-memmap2-0.7))
+       #:cargo-development-inputs (("rust-evdev" ,rust-evdev-0.11))))
+    (inputs (list libxkbcommon))
+    (home-page "https://github.com/rust-x-bindings/xkbcommon-rs")
+    (synopsis "Rust bindings and wrappers for @code{libxkbcommon}")
+    (description "This package provides a set of bindings and safe wrappers
+for @code{libxkbcommon}.")
+    (license license:expat)))
+
 (define-public rust-xml-rs-0.8
   (package
     (name "rust-xml-rs")
-- 
2.42.0