guix_mirror_bot pushed a commit to branch rust-team
in repository guix.
commit d144e484cbf3d577753c2e65a78bcea3eedf28b6
Author: Efraim Flashner <[email protected]>
AuthorDate: Mon Nov 16 10:16:29 2026 +0200
gnu: rust: Integrate gdb into config.toml.
* gnu/packages/rust.scm (rust)[arguments]: Adjust the 'configure phase
to also add gdb to the config.toml. Remove the custom
'add-gdb-to-config phase.
---
gnu/packages/rust.scm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index e45ce86c51d..b52886720f2 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1190,6 +1190,7 @@ cargo = \"" (search-input-file inputs "bin/cargo") "\"
rustc = \"" (search-input-file inputs "bin/rustc") "\"
docs = false
python = \"" (search-input-file inputs "bin/python") "\"
+gdb = \"" (search-input-file inputs "bin/gdb") "\"
vendor = true
submodules = false
[install]
@@ -1209,13 +1210,6 @@ cxx = \"" (search-input-file inputs "bin/g++") "\"
ar = \"" (search-input-file inputs "bin/ar") "\"
[dist]
") port)))))
- (add-after 'configure 'add-gdb-to-config
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((gdb (assoc-ref inputs "gdb")))
- (substitute* "config.toml"
- (("^python =.*" all)
- (string-append all
- "gdb = \"" gdb "/bin/gdb\"\n"))))))
(replace 'build
;; Phase overridden to also build more tools.
(lambda* (#:key parallel-build? #:allow-other-keys)