diff mbox series

[bug#69890,16/43] gnu: Add rust-getch-0.3.

Message ID 7e3181020388f05d96bf43e2e79b61df01d370ba.1710817681.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:50 a.m. UTC
* 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 mbox series

Patch

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")