diff options
author | Marius Bakke <marius@gnu.org> | 2022-06-26 20:28:46 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-06-26 22:58:32 +0200 |
commit | 1ae2a47a0129059c6cd35e28683077999c320540 (patch) | |
tree | 98a04e0f13ec38ddc56ae1f835b4eadba6603e07 /gnu | |
parent | 03e13c8981ce45d72f1acb99d5aba951450921ae (diff) | |
download | guix-1ae2a47a0129059c6cd35e28683077999c320540.tar.gz |
gnu: m4: Fix cross-compilation.
* gnu/packages/m4.scm (m4)[arguments]: Look up /bin/sh in NATIVE-INPUTS if applicable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/m4.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/m4.scm b/gnu/packages/m4.scm index 9d3dbe41f2..fbc075a2cb 100644 --- a/gnu/packages/m4.scm +++ b/gnu/packages/m4.scm @@ -55,8 +55,9 @@ (("4 5 6") "4 6")))) (add-after 'unpack 'configure-shell - (lambda* (#:key inputs #:allow-other-keys) - (let ((/bin/sh (search-input-file inputs "/bin/sh"))) + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (let ((/bin/sh (search-input-file (or native-inputs inputs) + "/bin/sh"))) ;; Adjust hard-coded /bin/sh for tests. (substitute* "lib/config.hin" (("\"/bin/sh\"") |