summary refs log tree commit diff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-04-24 16:51:42 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:40 +0300
commit4768ff2107d48245199c32660e9bfe122f58fbea (patch)
tree01ebb5aec2eb0125d190d652804fe4f28c34f363 /gnu/packages/crates-io.scm
parent02bbbe01e3b1eb4aebfed551edd897408f84d390 (diff)
downloadguix-4768ff2107d48245199c32660e9bfe122f58fbea.tar.gz
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.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm13
1 files 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