Subject: [bug#77093] [PATCH v4 rust-team 16/22] build/cargo: Use sytsem oniguruma.

From: Hilton Chain <[email-masked]>
Date: Tue, 29 Apr 2025 00:23:13 +0800

* guix/build/cargo-build-system.scm (configure): Set RUSTONIG_SYSTEM_LIBONIG.

Change-Id: I02624d98ade15d65965f46555e5a210a7630dd5d
---
 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 c25c26fa76..39a9487841 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -250,6 +250,7 @@ (define* (configure #:key source inputs
   (setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1")
   (setenv "LIBSQLITE3_SYS_USE_PKG_CONFIG" "1")
   (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
+  (setenv "RUSTONIG_SYSTEM_LIBONIG" "1")
   (setenv "SODIUM_USE_PKG_CONFIG" "1")
   (setenv "ZSTD_SYS_USE_PKG_CONFIG" "1")
   (when (assoc-ref inputs "openssl")
-- 
2.49.0