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:
Efraim Flashner 2021-03-15 14:22:52 +02:00
parent d499911432
commit 12c699572c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -28726,7 +28726,16 @@ (define-public rust-pkg-config-0.3
(build-system cargo-build-system)
(arguments
`(#: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
`(("pkg-config" ,pkg-config)))
(home-page "https://github.com/rust-lang/pkg-config-rs")