From a691ba25fbe4d0b668ae35c72ea26a416d200b67 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 18 Sep 2024 14:35:50 +0300 Subject: [PATCH] gnu: Add rust-freetype-rs-0.35. * gnu/packages/crates-io.scm (rust-freetype-rs-0.35): New variable. (rust-freetype-rs-0.32): Inherit from rust-freetype-rs-0.35. Change-Id: I43d96b8daa51bf837f7b26ed4a895a12a6b5ae3e --- gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f7d5f05850..44d90488f4 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -27776,8 +27776,34 @@ (define-public rust-freetype-0.7 (description "This package provides bindings for Freetype used by Servo.") (license (list license:asl2.0 license:expat)))) +(define-public rust-freetype-rs-0.35 + (package + (name "rust-freetype-rs") + (version "0.35.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "freetype-rs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1gzfb9fax3d3s691ys99nfihpzwl7hacvxnwvlxg4sph1fzd5ymi")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2) + ("rust-freetype-sys" ,rust-freetype-sys-0.20) + ("rust-libc" ,rust-libc-0.2)) + #:cargo-development-inputs + (("rust-unicode-normalization" ,rust-unicode-normalization-0.1)))) + (inputs + (list freetype)) + (home-page "https://github.com/PistonDevelopers/freetype-rs") + (synopsis "Bindings for FreeType font library") + (description "This package provides bindings for FreeType font library.") + (license license:expat))) + (define-public rust-freetype-rs-0.32 (package + (inherit rust-freetype-rs-0.35) (name "rust-freetype-rs") (version "0.32.0") (source @@ -27787,20 +27813,13 @@ (define-public rust-freetype-rs-0.32 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1q54jimjgzwdb3xsp7rsvdmp6w54cak7bvc379mdabc2ciz3776m")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) ("rust-freetype-sys" ,rust-freetype-sys-0.17) ("rust-libc" ,rust-libc-0.2)) #:cargo-development-inputs - (("rust-unicode-normalization" ,rust-unicode-normalization-0.1)))) - (inputs - (list freetype)) - (home-page "https://github.com/PistonDevelopers/freetype-rs") - (synopsis "Bindings for FreeType font library") - (description "This package provides bindings for FreeType font library.") - (license license:expat))) + (("rust-unicode-normalization" ,rust-unicode-normalization-0.1)))))) (define-public rust-freetype-rs-0.26 (package