Subject: [PATCH 49/91] gnu: Add rust-crokey-0.4.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:27 +0100

* gnu/packages/crates-io.scm (rust-crokey-0.4): New variable.

Change-Id: Idff66a14704c6d2e3378b645041db7c461a42441
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d767e5e792..6afc0e5ea1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17158,6 +17158,34 @@ (define-public rust-crokey-proc-macros-0.4
     (description "proc macros for the crokey crate")
     (license license:expat)))
 
+(define-public rust-crokey-0.4
+  (package
+    (name "rust-crokey")
+    (version "0.4.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "crokey" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1059c97qxd90rd16y27k5jl1aspr9sc0n8bxhqll8plf0zd57w9b"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; error: unrecognized key code "hyphen"
+       #:cargo-inputs (("rust-crokey-proc-macros" ,rust-crokey-proc-macros-0.4)
+                       ("rust-crossterm" ,rust-crossterm-0.23)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-deser-hjson" ,rust-deser-hjson-1)
+                                   ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/Canop/crokey")
+    (synopsis
+     "Parse and describe keys - helping incorporate keybindings in terminal applications")
+    (description
+     "Parse and describe keys - helping incorporate keybindings in terminal
+applications")
+    (license license:expat)))
+
 (define-public rust-crossbeam-0.8
   (package
     (name "rust-crossbeam")
-- 
2.41.0