Subject: [bug#49384] [PATCH 02/21] gnu: Add rust-colored-2

From: Domagoj Stolfa <[email-masked]>
Date: Sun, 4 Jul 2021 17:31:44 +0100

* gnu/packages/crates-io.scm (rust-colored-2): New public variable.
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7b3fea5859..842400c13d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8603,6 +8603,35 @@ colors.")
        (sha256
         (base32 "0fildacm47g86acmx44yvxx6cka8fdym5qkgfm8x8gh2hsrghc7r"))))))
 
+(define-public rust-colored-2
+  (package
+    (name "rust-colored")
+    (version "2.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "colored" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1gbcijscmznzy42rn213yp9ima7210zakgaqibgg1n441dsnyqdk"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-atty" ,rust-atty-0.2)
+         ("rust-lazy-static" ,rust-lazy-static-1)
+         ("rust-winapi" ,rust-winapi-0.3))
+        #:cargo-development-inputs
+        (("rust-ansi-term" ,rust-ansi-term-0.12)
+         ("rust-rspec" ,rust-rspec-1))))
+    (home-page "https://github.com/mackwic/colored")
+    (synopsis
+      "The most simple way to add colors in your terminal")
+    (description
+      "The most simple way to add colors in your terminal")
+    (license license:mpl2.0)))
+
 (define-public rust-combine-4
   (package
     (name "rust-combine")
-- 
2.32.0