~ruther/guix-local

8da6dfb0bbb00c330bfa053741f5a58b66219463 — Ludovic Courtès 4 years ago a284e56
gnu: libgit2: Allow cross-compilation.

With commit 8394619baceb118df92e355377fd543bb1aa501a, the label for
'pkg-config' when cross-compiling changed to "TRIPLET-pkg-config",
thereby breaking the 'assoc-ref' call.  This commit fixes it by avoiding
referring to the label.

* gnu/packages/version-control.scm (libgit2)[arguments]: Adjust
"-DPKG_CONFIG_EXECUTABLE=" option.
1 files changed, 4 insertions(+), 2 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +4 -2
@@ 811,8 811,10 @@ to GitHub contributions calendar.")
             ,@(if (%current-target-system)
                   `((string-append
                      "-DPKG_CONFIG_EXECUTABLE="
                      (assoc-ref %build-inputs "pkg-config")
                      "/bin/" ,(%current-target-system) "-pkg-config"))
                      (search-input-file
                       %build-inputs
                       (string-append "/bin/" ,(%current-target-system)
                                      "-pkg-config"))))
                   '()))
       #:phases
       (modify-phases %standard-phases