Subject: [PATCH 16/42] gnu: Add rust-ttf-parser-0.12.

From: Hartmut Goebel <[email-masked]>
Date: Sat, 18 Dec 2021 21:49:27 +0100

* gnu/packages/crates-io.scm (rust-ttf-parser-0.12): New variable.
  (rust-ttf-parser-0.6): Inherit from rust-ttf-parser-0.12.
---
 gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 15288f6919..331ad27e6c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5,7 +5,7 @@
 ;;; Copyright © 2019 Giacomo Leidi <[email-masked]>
 ;;; Copyright © 2019–2021 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2019, 2020 John Soo <[email-masked]>
-;;; Copyright © 2019, 2020 Hartmut Goebel <[email-masked]>
+;;; Copyright © 2019, 2020, 2021 Hartmut Goebel <[email-masked]>
 ;;; Copyright © 2020 Jakub Kądziołka <[email-masked]>
 ;;; Copyright © 2020 Leo Famulari <[email-masked]>
 ;;; Copyright © 2020 Gabriel Arazas <[email-masked]>
@@ -58375,17 +58375,17 @@ the Trust-DNS client to use rustls for TLS.")
      "Test harness for ui tests of compiler diagnostics.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-ttf-parser-0.6
+(define-public rust-ttf-parser-0.12
   (package
     (name "rust-ttf-parser")
-    (version "0.6.2")
+    (version "0.12.2")
     (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "ttf-parser" version))
-       (file-name (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32 "1p4z969pwd5adayy3ijq94iiak42yfxz8hk5wnkdsirymgbpqp9y"))))
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "ttf-parser" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "0l3wzhhvcp58phz53rcc9cx4x7adr3srkpvy6hznmhmf71vhjmhw"))))
     (build-system cargo-build-system)
     (arguments `(#:skip-build? #t))
     (home-page "https://github.com/RazrFalcon/ttf-parser")
@@ -58395,6 +58395,20 @@ the Trust-DNS client to use rustls for TLS.")
 parser.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ttf-parser-0.6
+  (package
+    (inherit rust-ttf-parser-0.12)
+    (name "rust-ttf-parser")
+    (version "0.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ttf-parser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1p4z969pwd5adayy3ijq94iiak42yfxz8hk5wnkdsirymgbpqp9y"))))
+    (arguments `(#:skip-build? #t))))
+
 (define-public rust-tui-0.16
   (package
     (name "rust-tui")
-- 
2.30.2