guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/23: gnu: rust-pkg-config-0.3: Hardcode location of pkg-config.


From: guix-commits
Subject: 05/23: gnu: rust-pkg-config-0.3: Hardcode location of pkg-config.
Date: Mon, 15 Mar 2021 09:54:24 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 12c699572c41cb267172e864523dff09af599cd5
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 15 14:22:52 2021 +0200

    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.
---
 gnu/packages/crates-io.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 425ab95..664bb10 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";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]