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

commit c4602199d11cc7a8b5158e61834e4bc1a0e4dafc
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Mar 27 17:26:49 2024 +0200

    build-system/cargo: Use system zstd by default.
    
    * guix/build/cargo-build-system.scm (configure): Add an environment
    variable to use pkg-config to find the zstd library.
    
    Change-Id: Id53296c4a18fffd8aa2f2b9e4d52d98ff3486293
---
 guix/build/cargo-build-system.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/build/cargo-build-system.scm 
b/guix/build/cargo-build-system.scm
index 70ddf063d2..48c5f9d4bf 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -219,6 +219,7 @@ directory = '" vendor-dir "'") port)
 
   (setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1")
   (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
+  (setenv "ZSTD_SYS_USE_PKG_CONFIG" "1")
   (when (assoc-ref inputs "openssl")
     (setenv "OPENSSL_DIR" (assoc-ref inputs "openssl")))
   (when (assoc-ref inputs "gettext")

Reply via email to