From 06b3bd8a4ddcd710df67c04c431a00a7a9b180f8 Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Fri, 5 Jan 2024 23:52:35 -0500 Subject: [PATCH] gnu: Add rust-palette-0.6. * gnu/packages/crates-graphics.scm (rust-palette-0.6): New variable. Change-Id: I0c5e982730c533a38dbae133d015d3f71d77c892 Signed-off-by: Efraim Flashner --- gnu/packages/crates-graphics.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 6e7f649b31..59bd4b370d 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -2538,6 +2538,38 @@ (define-public rust-palette-0.7 on correctness, flexibility and ease of use.") (license (list license:expat license:asl2.0)))) +(define-public rust-palette-0.6 + (package + (inherit rust-palette-0.7) + (name "rust-palette") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "palette" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0jay4zbxfnz6hj9f78inb3n3hmaamivnrrapy4ri0n0jf67xd74g")))) + (arguments + `(#:cargo-inputs + (("rust-approx" ,rust-approx-0.5) + ("rust-bytemuck" ,rust-bytemuck-1) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-palette-derive" ,rust-palette-derive-0.6) + ("rust-phf" ,rust-phf-0.11) + ("rust-rand" ,rust-rand-0.8) + ("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-clap" ,rust-clap-2) + ("rust-criterion" ,rust-criterion-0.3) + ("rust-csv" ,rust-csv-1) + ("rust-image" ,rust-image-0.23) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-rand-mt" ,rust-rand-mt-4) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1)))))) + (define-public rust-palette-derive-0.7 (package (name "rust-palette-derive")