guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

444/471: gnu: rust-freetype-sys-0.13: Unbundle freetype2.


From: guix-commits
Subject: 444/471: gnu: rust-freetype-sys-0.13: Unbundle freetype2.
Date: Wed, 3 May 2023 09:29:19 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit bdfe8c9299d43ecf7d955d6429787ccfbdec62f6
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Apr 24 16:51:42 2023 +0300

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]