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
This commit is contained in:
Efraim Flashner 2024-03-27 17:26:49 +02:00
parent acdac1c47e
commit c885902f56
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -219,6 +219,7 @@ (define* (configure #:key inputs
(setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1") (setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1")
(setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1") (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
(setenv "ZSTD_SYS_USE_PKG_CONFIG" "1")
(when (assoc-ref inputs "openssl") (when (assoc-ref inputs "openssl")
(setenv "OPENSSL_DIR" (assoc-ref inputs "openssl"))) (setenv "OPENSSL_DIR" (assoc-ref inputs "openssl")))
(when (assoc-ref inputs "gettext") (when (assoc-ref inputs "gettext")