diff mbox series

[bug#74233,PATCHv2,rust-team,22/40] gnu: Add rust-xkb-0.3.

Message ID c00a6046e5e1cc0099ce0f9a51086e9782fcf82f.1731018145.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74233,PATCHv2,rust-team,01/40] gnu: Add rust-search-provider-0.8. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:22 p.m. UTC
* gnu/packages/crates-graphics.scm (rust-xkb-0.3): New variable.

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

Patch

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index ef79f8aabf..197f77a724 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -5925,6 +5925,32 @@  (define-public rust-xkbcommon-sys-1.4
     (description "This package provides Bindings to libxkbcommon.")
     (license license:wtfpl2)))
 
+(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.4))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list clang libxkbcommon-1.5 mesa))
+    (home-page "https://github.com/meh/rust-xkb")
+    (synopsis "Rusty wrapper around libxkbcommon")
+    (description "This package provides Rusty wrapper around libxkbcommon.")
+    (license license:wtfpl2)))
+
 (define-public rust-xkeysym-0.2
   (package
     (name "rust-xkeysym")