diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2026-03-04 17:30:57 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-03-30 10:35:26 +0300 |
| commit | d33bc4b598d150da4c8c81ba3114fb0b07076779 (patch) | |
| tree | 8e03024bd8b62f8773a55c557ef3fe084b8c1110 /gnu | |
| parent | 5fb2dadefcaf0f56244ff8d359038d4930627444 (diff) | |
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 <john@guixotic.coop>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/rust-apps.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 684afba942c..4e1112d7668 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")) |
