Subject: [PATCH 16/43] gnu: Add rust-getch-0.3.

From: normalmente <[email-masked]>
Date: Tue, 19 Mar 2024 03:50:47 +0000

* gnu/packages/crates-io.scm (rust-getch-0.3): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index be7e14e57f..cd61924335 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26280,6 +26280,30 @@ (define-public rust-geo-types-0.6
        #:cargo-development-inputs
        (("rust-approx" ,rust-approx-0.3))))))
 
+(define-public rust-getch-0.3
+  (package
+    (name "rust-getch")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "getch" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1a0v3ck9w65zcgg055laiyyvkb6lxaph1h3zvw6pgq99bcnhx68k"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-termios" ,rust-termios-0.3))))
+    (home-page "https://nest.pijul.com/pmeunier/getch")
+    (synopsis
+     "Portable implementation of getch, using @code{_getch} on Windows, and
+@code{termios} on Unix")
+    (description
+     "This package provides a portable implementation of getch, using
+@code{_getch} on Windows, and @code{termios} on Unix.")
+    (license license:asl2.0)))
+
 (define-public rust-gethostname-0.4
   (package
     (name "rust-gethostname")
-- 
2.41.0