mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: rust-pkg-config-0.3: Hardcode location of pkg-config.
* gnu/packages/crates-io.scm (rust-pkg-config-0.3)[arguments]: Add phase to hardcode location of pkg-config binary.
This commit is contained in:
parent
d499911432
commit
12c699572c
1 changed files with 10 additions and 1 deletions
|
@ -28726,7 +28726,16 @@ written with declarative macros.")
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-development-inputs
|
`(#:cargo-development-inputs
|
||||||
(("rust-lazy-static" ,rust-lazy-static-1))))
|
(("rust-lazy-static" ,rust-lazy-static-1))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'hardcode-pkg-config-loation
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "src/lib.rs"
|
||||||
|
(("\"pkg-config\"")
|
||||||
|
(string-append "\"" (assoc-ref inputs "pkg-config")
|
||||||
|
"/bin/pkg-config\"")))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(home-page "https://github.com/rust-lang/pkg-config-rs")
|
(home-page "https://github.com/rust-lang/pkg-config-rs")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue