From d33bc4b598d150da4c8c81ba3114fb0b07076779 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 4 Mar 2026 17:30:57 +0200 Subject: [PATCH] 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 --- 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 684afba942..4e1112d766 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -3089,11 +3089,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"))