From ca64aea7e9d139b2cb2164b5020f5ed57b7daf91 Mon Sep 17 00:00:00 2001 From: Troy Figiel Date: Sun, 7 Jan 2024 12:49:27 +0100 Subject: gnu: Add rust-xkbcommon-0.5. * gnu/packages/crates-graphics.scm (rust-xkbcommon-0.5): New variable. (rust-xkbcommon-0.7)[description]: Improve description. Signed-off-by: Efraim Flashner Change-Id: I514a7e181034eaefa1f2758e06972d601d431234 --- gnu/packages/crates-graphics.scm | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 743606b9ae..9ac02ed5f1 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2022 Marius Bakke ;;; Copyright © 2023, 2024 Jaeme Sifat +;;; Copyright © 2024 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -5671,9 +5672,28 @@ the platform-specific getters provided by winit, or another library.") (inputs (list libxkbcommon)) (home-page "https://github.com/rust-x-bindings/xkbcommon-rs") (synopsis "Rust bindings and wrappers for libxkbcommon") - (description "Rust bindings and wrappers for libxkbcommon.") + (description "This package provides a set of bindings and safe wrappers +for @code{libxkbcommon}.") (license license:expat))) +(define-public rust-xkbcommon-0.5 + (package + (inherit rust-xkbcommon-0.7) + (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")))) + (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)))))) + (define-public rust-xkbcommon-dl-0.4 (package (name "rust-xkbcommon-dl") -- cgit v1.2.3