guix-commits
[Top][All Lists]
Advanced

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

27/330: gnu: Add rust-supports-color-3.


From: guix-commits
Subject: 27/330: gnu: Add rust-supports-color-3.
Date: Mon, 18 Mar 2024 07:15:00 -0400 (EDT)

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

commit 7cb1bec40a150c7298c4cb73bb0f33e11dc3cd26
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 14 11:04:06 2024 +0200

    gnu: Add rust-supports-color-3.
    
    * gnu/packages/crates-io.scm (rust-supports-color-3): New variable.
    (rust-supports-color-2): Inherit from rust-supports-color-3.
    
    Change-Id: I62349cf3664970e5c8e158cea9796e9594bf8882
---
 gnu/packages/crates-io.scm | 29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3e67b48fe1..222f7fdb86 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66693,8 +66693,29 @@ values without proliferating generics.")
     (description "Superluminal Performance C API bindings.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-supports-color-3
+  (package
+    (name "rust-supports-color")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "supports-color" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0kw5miaai8sarcikzdvsf2ys6rkakngyf2g4yifmgz0xc8ab6acq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-is-ci" ,rust-is-ci-1))))
+    (home-page "https://github.com/zkat/supports-color";)
+    (synopsis "Detects whether a terminal supports color")
+    (description
+     "Detects whether a terminal supports color, and gives details about that 
support.")
+    (license license:asl2.0)))
+
 (define-public rust-supports-color-2
   (package
+    (inherit rust-supports-color-3)
     (name "rust-supports-color")
     (version "2.0.0")
     (source (origin
@@ -66704,17 +66725,11 @@ values without proliferating generics.")
               (sha256
                (base32
                 "0m5kayz225f23k5jyjin82sfkrqhfdq3j72ianafkazz9cbyfl29"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; panicked at 'assertion failed: `(left == right)`
        #:cargo-inputs
        (("rust-is-terminal" ,rust-is-terminal-0.4)
-        ("rust-is-ci" ,rust-is-ci-1))))
-    (home-page "https://github.com/zkat/supports-color";)
-    (synopsis "Detects whether a terminal supports color")
-    (description
-     "Detects whether a terminal supports color, and gives details about that 
support.")
-    (license license:asl2.0)))
+        ("rust-is-ci" ,rust-is-ci-1))))))
 
 (define-public rust-supports-hyperlinks-3
   (package



reply via email to

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