Subject: [PATCH 35/49] gnu: Add rust-terminal-size-0.4.

From: Jordan Moore <[email-masked]>
Date: Tue, 26 Nov 2024 16:39:10 -0500

* gnu/packages/crates-io.scm (rust-terminal-size-0.4): New variable.

Change-Id: I045e0e2d7e6744029fb7dc5938655627f1bd3fa2
---
 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 65d81987d5..d84e33c204 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83553,6 +83553,28 @@ (define-public rust-terminal-colorsaurus-0.4
 color of the terminal.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-terminal-size-0.4
+  (package
+    (name "rust-terminal-size")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "terminal_size" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1vx6a5klj7sjkx59v78gh93j445s09y2fasiykwgsb04rbbrnnag"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; tests require /dev/stderr
+       #:cargo-inputs (("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-windows-sys" ,rust-windows-sys-0.59))))
+    (home-page "https://github.com/eminence/terminal-size")
+    (synopsis "Gets the size of your Linux or Windows terminal")
+    (description
+     "This package provides Gets the size of your Linux or Windows terminal.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-terminal-size-0.3
   (package
     (name "rust-terminal-size")
-- 
2.46.0