guix_mirror_bot pushed a commit to branch mesa-updates
in repository guix.

commit 77cafcfc8ddc50c0d27c506294b4ade9cfcf77cf
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Mar 4 17:30:57 2026 +0200

    gnu: rust-bindgen-cli: Wrap with clang.
    
    * gnu/packages/rust-apps.scm (rust-bindgen-cli)[arguments]: Adjust the
    'install phase to also wrap the binary with clang.
    
    Change-Id: I03491fdb4a4b737cefb1e88e8ea74fba5ed6bd47
    Signed-off-by: John Kehayias <[email protected]>
---
 gnu/packages/rust-apps.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 8a54f12b8b..71467c5d08 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2779,11 +2779,14 @@ support, watch support (like @command{top}) and a tree 
view.")
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((bin (string-append (assoc-ref outputs "out") "/bin"))
                     (bindgen (string-append bin "/bindgen"))
-                    (llvm-dir (string-append
-                                (assoc-ref inputs "clang") "/lib")))
+                    (clang   (assoc-ref inputs "clang"))
+                    (llvm-dir (string-append clang "/lib"))
+                    (clang-bin (string-append clang "/bin")))
                (install-file "target/release/bindgen" bin)
                (wrap-program bindgen
-                 `("LIBCLANG_PATH" = (,llvm-dir))))))
+                 `("LIBCLANG_PATH" = (,llvm-dir))
+                 ;; The bindgen binary requires clang, add one as a fallback.
+                 `("PATH" suffix (,clang-bin))))))
          (add-after 'install 'install-completions
            (lambda* (#:key native-inputs outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))

Reply via email to