guix-patches
[Top][All Lists]
Advanced

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

[bug#59670] [PATCH 36/50] gnu: Add rust-terminal-size-0.2.


From: (
Subject: [bug#59670] [PATCH 36/50] gnu: Add rust-terminal-size-0.2.
Date: Tue, 29 Nov 2022 07:00:50 +0000

* gnu/packages/crates-io.scm (rust-terminal-size-0.2): New variable.
(rust-terminal-size-0.1): Inherit from RUST-TERMINAL-SIZE-0.2.
---
 gnu/packages/crates-io.scm | 43 ++++++++++++++++++++++++++------------
 1 file changed, 30 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 29d5b69c48..3fcabdc99e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -58109,29 +58109,46 @@ (define-public rust-termcolor-0.3
        #:cargo-inputs
        (("rust-wincolor" ,rust-wincolor-0.1))))))
 
-(define-public rust-terminal-size-0.1
+(define-public rust-terminal-size-0.2
   (package
     (name "rust-terminal-size")
-    (version "0.1.17")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "terminal-size" version))
-       (file-name (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32 "1pq60ng1a7fjp597ifk1cqlz8fv9raz9xihddld1m1pfdia1lg33"))))
+    (version "0.2.2")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "terminal-size" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0yhza8sc6jkka6j0nq5sl749ckx1jagvxp3b38yhh4px6k291jj0"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f          ; Tests require /dev/stderr
-       #:cargo-inputs
-       (("rust-libc" ,rust-libc-0.2)
-        ("rust-winapi" ,rust-winapi-0.3))))
+     (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))))
 
+(define-public rust-terminal-size-0.1
+  (package
+    (inherit rust-terminal-size-0.2)
+    (name "rust-terminal-size")
+    (version "0.1.17")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "terminal-size" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1pq60ng1a7fjp597ifk1cqlz8fv9raz9xihddld1m1pfdia1lg33"))))
+    (arguments
+     (list #:tests? #f          ;tests require /dev/stderr
+           #:cargo-inputs
+           `(("rust-libc" ,rust-libc-0.2)
+             ("rust-winapi" ,rust-winapi-0.3))))))
+
 (define-public rust-terminfo-0.7
   (package
     (name "rust-terminfo")
-- 
2.38.1






reply via email to

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