mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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>
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user