guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 52a3186a912cf04f97eb28c23549e49a241fce11
Author: Efraim Flashner <[email protected]>
AuthorDate: Sun Nov 1 22:05:08 2026 +0200

    gnu: ungoogled-chromium: Find rustfmt.
    
    * gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Adjust the
    'patch-stuff phase to find the new location of rustfmt.
    [native-inputs]: Add rust:tools.
---
 gnu/packages/chromium.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 9f3197fe902..43b2bd2bdc4 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -885,7 +885,9 @@
                   (("(_libclang_path = )rust_bindgen_root" _ libclang)
                    (string-append libclang "clang_base_path"))
                   (("(_rustfmt_path = \")\\$\\{rust_bindgen_root\\}" _ rustfmt)
-                   (string-append rustfmt "${rust_sysroot_absolute}"))))))
+                   (string-append
+                     rustfmt (dirname (dirname (search-input-file
+                                                 inputs "bin/rustfmt")))))))))
           (add-after 'patch-stuff 'add-absolute-references
             (lambda* (#:key inputs #:allow-other-keys)
               (let ((cups-config (search-input-file inputs "/bin/cups-config"))
@@ -1102,6 +1104,7 @@
            python-pyyaml
            python-wrapper
            rust
+           `(,rust "tools")
            rust-bindgen-cli
            rust-cbindgen
            wayland))

Reply via email to