guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

318/350: gnu: Add rust-getch-0.3.


From: guix-commits
Subject: 318/350: gnu: Add rust-getch-0.3.
Date: Sun, 15 Dec 2024 02:14:59 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit ee1f56bbd75f98172bf25a41fb5eca6bcffd1ddd
Author: normalmente <normally_js@posteo.net>
AuthorDate: Tue Mar 19 03:50:47 2024 +0000

    gnu: Add rust-getch-0.3.
    
    * gnu/packages/crates-io.scm (rust-getch-0.3): New variable.
    
    Change-Id: Ic1fa7af7a982d513a8a98016e68c48d406746c5e
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0a662c522f..6c782a0fd0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31411,6 +31411,28 @@ Rust.")
        #: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")
+    (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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]