Subject: [bug#76513] [PATCH rust-team 15/77] gnu: Add rust-svg2pdf-0.12.

From: Andrew Wong <[email-masked]>
Date: Sun, 23 Feb 2025 15:21:06 -0500

* gnu/packages/crates-graphics.scm (rust-svg2pdf-0.12): New variable.

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

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index f4acba88a2..ee34c0991f 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -4631,6 +4631,37 @@ (define-public rust-svg-metadata-0.4
 and height) from SVG graphics.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-svg2pdf-0.12
+  (package
+    (name "rust-svg2pdf")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "svg2pdf" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0r03ql053ib4rjydaq2dw8ddxjdwbblkhr61z1zgn67kvkdcj52h"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-fontdb" ,rust-fontdb-0.21)
+                       ("rust-image" ,rust-image-0.25)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-miniz-oxide" ,rust-miniz-oxide-0.8)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-pdf-writer" ,rust-pdf-writer-0.12)
+                       ("rust-resvg" ,rust-resvg-0.43)
+                       ("rust-siphasher" ,rust-siphasher-1)
+                       ("rust-subsetter" ,rust-subsetter-0.2)
+                       ("rust-tiny-skia" ,rust-tiny-skia-0.11)
+                       ("rust-ttf-parser" ,rust-ttf-parser-0.24)
+                       ("rust-usvg" ,rust-usvg-0.43))))
+    (home-page "https://github.com/typst/svg2pdf")
+    (synopsis "Convert SVG files to PDFs")
+    (description "This package provides Convert SVG files to PDFs.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-tiff-0.9
   (package
     (name "rust-tiff")
-- 
2.48.1