[bug#75677,rust-team,v2,54/81] gnu: rust-coolor-1: New variable.

Message ID 20250308033446.2101481-55-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:34 a.m. UTC
  * gnu/packages/crates-io.scm (rust-coolor-1): New variable.
---
 gnu/packages/crates-io.scm | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5ecabfb595..4870a764b8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16063,26 +16063,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)