Subject: [bug#66805] [PATCH 05/22] gnu: Add rust-terminal-size-0.3.

From: Jaeme Sifat <[email-masked]>
Date: Sun, 29 Oct 2023 00:26:57 -0400

* gnu/packages/crates-io.scm (rust-terminal-size-0.3): New variable.
* gnu/packages/crates-io.scm (rust-terminal-size-0.2): Inherit
rust-terminal-size-0.3.
* gnu/packages/crates-io.scm (rust-terminal-size-0.1): Inherit
rust-terminal-size-0.3.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: If72b8f5359705bf0674a244f4588efd1f90345a1
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++--------
 1 file changed, 25 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3efa5dadb5..3fd65dcc95 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -72907,8 +72907,31 @@ (define-public rust-termimad-0.20
     (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
+     `(#:tests? #f
+       #: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
@@ -72918,20 +72941,14 @@ (define-public rust-terminal-size-0.2
               (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
-    (inherit rust-terminal-size-0.2)
+    (inherit rust-terminal-size-0.3)
     (name "rust-terminal-size")
     (version "0.1.17")
     (source
-- 
2.34.1