[bug#77382,rust-team,10/18] gnu: Add rust-material-colors-0.4.

Message ID dace6ec5607f398dc8271b3b9142788b65c73896.1743337577.git.gabrielsantosdesouza@disroot.org
State New
Headers
Series gnu: Add matugen. |

Commit Message

Gabriel Santos March 30, 2025, 12:26 p.m. UTC
  * gnu/packages/crates-io.scm (rust-material-colors-0.4): New variable.

Change-Id: I1f2ddd57f2a6d4e9e9224964cf50e6011fcc1040
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2ac678069a..6176514cc9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43433,6 +43433,37 @@  (define-public rust-matchit-0.7
      "This package provides a high performance, zero-copy URL router.")
     (license (list license:expat license:bsd-3))))
 
+(define-public rust-material-colors-0.4
+  (package
+    (name "rust-material-colors")
+    (version "0.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "material-colors" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hbrwk94i2wxih894pg30pxys7l5l0vxcc7pp1mw4nrd6vdgy9p2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; Requires passing a multi-threaded feature to tokio
+       #:cargo-inputs (("rust-ahash" ,rust-ahash-0.8)
+                       ("rust-image" ,rust-image-0.25)
+                       ("rust-indexmap" ,rust-indexmap-2)
+                       ("rust-libm" ,rust-libm-0.2)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-float-cmp" ,rust-float-cmp-0.9)
+        ("rust-reqwest" ,rust-reqwest-0.12))))
+    (native-inputs (list openssl pkg-config))
+    (home-page "https://github.com/Aiving/material-colors")
+    (synopsis "Up-to-date @code{material-color-utilities} port")
+    (description
+     "This package provides a Rust port of the
+@code{material-color-utilities}, which is available in other programming
+languages, viz. C++, Dart and Java.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-matrixcompare-0.3
   (package
     (name "rust-matrixcompare")