summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/crates-io.scm11
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")