diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-03-15 14:22:52 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-03-15 15:53:14 +0200 |
commit | 12c699572c41cb267172e864523dff09af599cd5 (patch) | |
tree | 192fdbc12b008d14d02378d26e456841400bc494 /gnu | |
parent | d49991143211943c9571fb86a638ace7b370312c (diff) | |
download | guix-patches-12c699572c41cb267172e864523dff09af599cd5.tar guix-patches-12c699572c41cb267172e864523dff09af599cd5.tar.gz |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 425ab95901..664bb10773 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -28726,7 +28726,16 @@ written with declarative macros.") (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") |