From e86ade731b02ed1754c2548c3172b783246dd4e2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Jan 2024 11:52:41 +0200 Subject: [PATCH] gnu: Add rust-tiny-skia-path-0.11. * gnu/packages/crates-io.scm (rust-tiny-skia-path-0.11): New variable. (rust-tiny-skia-path-0.8): Inherit from rust-tiny-skia-path-0.11. Change-Id: I79f817a3f296400166d708bee3fdd209e6ab311c --- gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 6fd191316a..c092249f8a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -75726,8 +75726,32 @@ (define-public rust-tiny-skia-0.8 (description "This package provides a tiny Skia subset ported to Rust.") (license license:bsd-3))) +(define-public rust-tiny-skia-path-0.11 + (package + (name "rust-tiny-skia-path") + (version "0.11.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "tiny-skia-path" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0hg5a0i7f505l3ix5a9ywjhjbsgqq856hwgic6pslaq5j255xqsx")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-arrayref" ,rust-arrayref-0.3) + ("rust-bytemuck" ,rust-bytemuck-1) + ("rust-libm" ,rust-libm-0.2) + ("rust-strict-num" ,rust-strict-num-0.1)))) + (home-page "https://github.com/RazrFalcon/tiny-skia/tree/master/path") + (synopsis "Tiny-skia Bezier path implementation") + (description + "This package provides a tiny-skia Bezier path implementation.") + (license license:bsd-3))) + (define-public rust-tiny-skia-path-0.8 (package + (inherit rust-tiny-skia-path-0.11) (name "rust-tiny-skia-path") (version "0.8.4") (source (origin @@ -75737,18 +75761,12 @@ (define-public rust-tiny-skia-path-0.8 (sha256 (base32 "0z37bzd222q3dlahmaxp2mf1pg5v9qyz3x0j3phs0myxyg9vbgxd")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-arrayref" ,rust-arrayref-0.3) ("rust-bytemuck" ,rust-bytemuck-1) ("rust-libm" ,rust-libm-0.2) - ("rust-strict-num" ,rust-strict-num-0.1)))) - (home-page "https://github.com/RazrFalcon/tiny-skia/path") - (synopsis "Tiny-skia Bezier path implementation") - (description - "This package provides a tiny-skia Bezier path implementation.") - (license license:bsd-3))) + ("rust-strict-num" ,rust-strict-num-0.1)))))) (define-public rust-tinyfiledialogs-3 (package