guix_mirror_bot pushed a commit to branch rust-team
in repository guix.
commit d0de8f1b812859fde725abed5fa4fa8a6190115f
Author: Efraim Flashner <[email protected]>
AuthorDate: Thu Oct 23 11:09:41 2025 +0300
gnu: rust: Add a search path for the rust sources.
* gnu/packages/rust.scm (rust)[native-search-paths]: Add entry for
RUST_SRC_PATH.
Change-Id: Id872340059574f1e7efd8ac30fca7165619584bc
---
gnu/packages/rust.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index b46a15f213..23c468eb00 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1932,6 +1932,11 @@ exec -a \"$0\" \"~a\" \"$@\""
(file-type 'regular)
(separator #f) ;single entry
(files '("etc/ssl/certs/ca-certificates.crt")))
+ ;; Make the sources discoverable not just when wrapped.
+ (search-path-specification
+ (variable "RUST_SRC_PATH")
+ (separator #f) ;single entry
+ (files '("lib/rustlib/src/rust/library")))
;; rustc invokes gcc, so we need to set its search paths accordingly.
%gcc-search-paths)))))