guix-commits
[Top][All Lists]
Advanced

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

33/135: gnu: Add rust-termion-3.


From: guix-commits
Subject: 33/135: gnu: Add rust-termion-3.
Date: Wed, 27 Mar 2024 04:54:47 -0400 (EDT)

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

commit 6db054c0620f1b3706083697fd943a9aa615ec23
Author: VÖRÖSKŐI András <voroskoi@gmail.com>
AuthorDate: Sat Feb 24 21:39:36 2024 +0100

    gnu: Add rust-termion-3.
    
    * gnu/packages/crates-io.scm (rust-termion-3): New variable.
    (rust-termion-2): Inherit from rust-termion-3.
    
    Change-Id: I735743218fdbba4845b877fbe2cfef38bee63f07
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a0402459e1..ee389cd063 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -75287,8 +75287,34 @@ writing colored text to a terminal.")
     (description "Terminal capabilities with type-safe getters.")
     (license license:wtfpl2)))
 
+(define-public rust-termion-3
+  (package
+    (name "rust-termion")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "termion" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19f7q542ih13j13jp5lr750z5yav7v035pmz46zznkahb9ki6y21"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; tests require a terminal
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-libredox" ,rust-libredox-0.0.2)
+                       ("rust-numtoa" ,rust-numtoa-0.1)
+                       ("rust-redox-termios" ,rust-redox-termios-0.1)
+                       ("rust-serde" ,rust-serde-1))))
+    (home-page "https://gitlab.redox-os.org/redox-os/termion";)
+    (synopsis "Library for manipulating terminals")
+    (description
+     "This package provides a bindless library for manipulating terminals.")
+    (license license:expat)))
+
 (define-public rust-termion-2
   (package
+    (inherit rust-termion-3)
     (name "rust-termion")
     (version "2.0.3")
     (source (origin
@@ -75298,7 +75324,6 @@ writing colored text to a terminal.")
               (sha256
                (base32
                 "0zcxsj2mms9hv8gizg2x3358ibjynzwvj5w6asr4683gxxyqqr64"))))
-    (build-system cargo-build-system)
     (arguments
      (list #:tests? #f ;tests require a terminal
            #:cargo-inputs
@@ -75306,12 +75331,7 @@ writing colored text to a terminal.")
              ("rust-libredox" ,rust-libredox-0.0.2)
              ("rust-numtoa" ,rust-numtoa-0.1)
              ("rust-redox-termios" ,rust-redox-termios-0.1)
-             ("rust-serde" ,rust-serde-1))))
-    (home-page "https://gitlab.redox-os.org/redox-os/termion";)
-    (synopsis "Library for manipulating terminals")
-    (description
-     "This package provides a bindless library for manipulating terminals.")
-    (license license:expat)))
+             ("rust-serde" ,rust-serde-1))))))
 
 (define-public rust-termion-1
   (package



reply via email to

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