From 4768ff2107d48245199c32660e9bfe122f58fbea Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 24 Apr 2023 16:51:42 +0300 Subject: gnu: rust-freetype-sys-0.13: Unbundle freetype2. * gnu/packages/crates-io.scm (rust-freetype-sys-0.13)[source]: Add snippet to remove freetype2. [arguments]: Don't skip build. [inputs]: Add freetype. [native-inputs]: Add pkg-config. --- gnu/packages/crates-io.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index b76dfe00e3..14bc7cac40 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -23084,14 +23084,21 @@ values to other threads.") (uri (crate-uri "freetype-sys" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "06kkds31s6b1i39dyanwmzbnic7laia1kk3gfvx8sqncq08l0zd3")))) + (base32 "06kkds31s6b1i39dyanwmzbnic7laia1kk3gfvx8sqncq08l0zd3")) + (snippet + #~(begin + (use-modules (guix build utils)) + (delete-file-recursively "freetype2"))))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs + `(#:cargo-inputs (("rust-cmake" ,rust-cmake-0.1) ("rust-libc" ,rust-libc-0.2) ("rust-pkg-config" ,rust-pkg-config-0.3)))) + (inputs + (list freetype)) + (native-inputs + (list pkg-config)) (home-page "https://github.com/PistonDevelopers/freetype-sys") (synopsis "Low level binding for FreeType font library") (description -- cgit v1.2.3