guix-commits
[Top][All Lists]
Advanced

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

229/311: gnu: Add rust-terminal-size-0.3.


From: guix-commits
Subject: 229/311: gnu: Add rust-terminal-size-0.3.
Date: Sat, 28 Oct 2023 16:39:23 -0400 (EDT)

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

commit baea855af2ce3bea13dd1431ac7b69c7db363352
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Oct 27 20:54:59 2023 +0300

    gnu: Add rust-terminal-size-0.3.
    
    * gnu/packages/crates-io.scm (rust-terminal-size-0.3): New variable.
    (rust-terminal-size-0.2): Inherit from rust-terminal-size-0.3.
    
    Change-Id: Ifa7f71a9aa8463f64e623d488463f5bc67c4cf04
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cb031a1671..848d02c7f9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -75703,8 +75703,31 @@ writing colored text to a terminal.")
     (description "Markdown Renderer for the Terminal.")
     (license license:expat)))
 
+(define-public rust-terminal-size-0.3
+  (package
+    (name "rust-terminal-size")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "terminal-size" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1xqdzdjq77smg41z67vg3qwrcilf1zf5330gdrgm22lyghmvzgi1"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:tests? #f          ;tests require /dev/stderr
+           #:cargo-inputs `(("rust-rustix" ,rust-rustix-0.38)
+                            ("rust-windows-sys" ,rust-windows-sys-0.48))))
+    (home-page "https://github.com/eminence/terminal-size";)
+    (synopsis "Gets the size of your Linux or Windows terminal")
+    (description
+     "This package gets the size of your Linux or Windows terminal.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-terminal-size-0.2
   (package
+    (inherit rust-terminal-size-0.3)
     (name "rust-terminal-size")
     (version "0.2.2")
     (source (origin
@@ -75714,16 +75737,10 @@ writing colored text to a terminal.")
               (sha256
                (base32
                 "0yhza8sc6jkka6j0nq5sl749ckx1jagvxp3b38yhh4px6k291jj0"))))
-    (build-system cargo-build-system)
     (arguments
      (list #:tests? #f          ;tests require /dev/stderr
            #:cargo-inputs
-           `(("rust-rustix" ,rust-rustix-0.35))))
-    (home-page "https://github.com/eminence/terminal-size";)
-    (synopsis "Gets the size of your Linux or Windows terminal")
-    (description
-     "This package gets the size of your Linux or Windows terminal.")
-    (license (list license:expat license:asl2.0))))
+           `(("rust-rustix" ,rust-rustix-0.35))))))
 
 (define-public rust-terminal-size-0.1
   (package



reply via email to

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