Subject: [bug#75677] [PATCH rust-team 58/89] gnu: rust-coolor-1: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sun, 19 Jan 2025 17:49:32 -0500

* gnu/packages/crates-io.scm (rust-coolor-1): New variable.
---
 gnu/packages/crates-io.scm | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2861aee11c..5c713f2d08 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -15787,26 +15787,43 @@ (define-public rust-cool-asserts-2
     (description "A rust library for pattern-matching assertions.")
     (license license:mpl2.0)))
 
-(define-public rust-coolor-0.8
+(define-public rust-coolor-1
   (package
     (name "rust-coolor")
-    (version "0.8.0")
+    (version "1.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "coolor" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1sjrs0k2ng69hilqrrkfayr2rjpwa6b6krp11y3da64zj10kxklm"))))
+        (base32 "06pybcqnnwndlj8smavabyrzmv5scac8dv9wlx3n8dqq0fjyy7b9"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t     ; Cut the dependency chain.
-       #:cargo-inputs (("rust-crossterm" ,rust-crossterm-0.23))))
+     `(#:cargo-inputs (("rust-crossterm" ,rust-crossterm-0.28))
+       #:cargo-development-inputs (("rust-crossterm" ,rust-crossterm-0.28)
+                                   ("rust-rand" ,rust-rand-0.8))))
     (home-page "https://github.com/Canop/coolor")
     (synopsis "Conversion between color formats")
     (description "Conversion between color formats.")
     (license license:expat)))
 
+(define-public rust-coolor-0.8
+  (package
+    (inherit rust-coolor-1)
+    (name "rust-coolor")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "coolor" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1sjrs0k2ng69hilqrrkfayr2rjpwa6b6krp11y3da64zj10kxklm"))))
+    (arguments
+     `(#:skip-build? #t     ; Cut the dependency chain.
+       #:cargo-inputs (("rust-crossterm" ,rust-crossterm-0.23))))))
+
 (define-public rust-coolor-0.5
   (package
     (inherit rust-coolor-0.8)
-- 
2.47.1