diff mbox series

[bug#69257,rust-team,v3,06/75] gnu: Add rust-xkb-0.3.

Message ID 95a1dc62f34dbf70219f9e3b8f4ac5ac114b0d7e.1714820129.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:34 a.m. UTC
* gnu/packages/crates-graphics.scm (rust-xkb-0.3): Add variable.

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

Patch

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 07d00550a9..6187000022 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -5811,6 +5811,31 @@  (define-public rust-x11-dl-2
     (description "This package provides X11 library bindings for Rust.")
     (license license:expat)))
 
+(define-public rust-xkb-0.3
+  (package
+    (name "rust-xkb")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "xkb" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03rfx8n3pajc95riksnshh3aqm8dqij2iis5icl88pa6ylk9x0gj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-xcb" ,rust-xcb-1)
+                       ("rust-xkbcommon-sys" ,rust-xkbcommon-sys-1))))
+    (native-inputs (list pkg-config))
+    (inputs (list clang libxkbcommon-1.5))
+    (home-page "https://github.com/meh/rust-xkb")
+    (synopsis "Rusty wrapper around libxkbcommon")
+    (description
+      "This package provides a Rusty wrapper around libxkbcommon.")
+    (license license:wtfpl2)))
+
 (define-public rust-xkbcommon-0.7
   (package
     (name "rust-xkbcommon")