mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: rust-cexpr-0.3: Don't skip build.
* gnu/packages/crates-io.scm (rust-cexpr-0.3)[arguments]: Don't skip build. Add custom phase to find clang. [inputs]: Add clang. (rust-cexpr-0.2)[inputs]: Inherit from rust-cexpr-0.3.
This commit is contained in:
parent
28ca765504
commit
a93ceeac82
1 changed files with 13 additions and 6 deletions
|
@ -2778,11 +2778,20 @@ archive to be linked into Rustcode.")
|
||||||
"07fdfj4ff2974y33yixrb657riq9zl9b9h9lr0h7ridhhvxvbrgw"))))
|
"07fdfj4ff2974y33yixrb657riq9zl9b9h9lr0h7ridhhvxvbrgw"))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:skip-build? #t
|
`(#:cargo-inputs
|
||||||
#:cargo-inputs
|
|
||||||
(("rust-nom" ,rust-nom-4.2))
|
(("rust-nom" ,rust-nom-4.2))
|
||||||
#:cargo-development-inputs
|
#:cargo-development-inputs
|
||||||
(("rust-clang-sys" ,rust-clang-sys-0.28))))
|
(("rust-clang-sys" ,rust-clang-sys-0.28))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'set-environmental-variable
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((clang (assoc-ref inputs "libclang")))
|
||||||
|
(setenv "LIBCLANG_PATH"
|
||||||
|
(string-append clang "/lib")))
|
||||||
|
#t)))))
|
||||||
|
(inputs
|
||||||
|
`(("libclang" ,clang)))
|
||||||
(home-page "https://github.com/jethrogb/rust-cexpr")
|
(home-page "https://github.com/jethrogb/rust-cexpr")
|
||||||
(synopsis "C expression parser and evaluator")
|
(synopsis "C expression parser and evaluator")
|
||||||
(description
|
(description
|
||||||
|
@ -2816,9 +2825,7 @@ archive to be linked into Rustcode.")
|
||||||
(let ((clang (assoc-ref inputs "libclang")))
|
(let ((clang (assoc-ref inputs "libclang")))
|
||||||
(setenv "LIBCLANG_PATH"
|
(setenv "LIBCLANG_PATH"
|
||||||
(string-append clang "/lib")))
|
(string-append clang "/lib")))
|
||||||
#t)))))
|
#t)))))))
|
||||||
(inputs
|
|
||||||
`(("libclang" ,clang)))))
|
|
||||||
|
|
||||||
(define-public rust-cfg-if-0.1
|
(define-public rust-cfg-if-0.1
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue