make-wrapper should use runtimeShell, not bash, for cross-compilation

This commit is contained in:
Travis Athougies 2018-11-11 09:55:55 -08:00
parent 1de9c8a023
commit 9531a32b60
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ makeWrapper() {
mkdir -p "$(dirname "$wrapper")"
echo "#! $SHELL -e" > "$wrapper"
echo "#! @shell@ -e" > "$wrapper"
params=("$@")
for ((n = 2; n < ${#params[*]}; n += 1)); do

View File

@ -356,7 +356,7 @@ with pkgs;
inherit contents compressor prepend;
};
makeWrapper = makeSetupHook { deps = [ dieHook ]; }
makeWrapper = makeSetupHook { deps = [ dieHook ]; substitutions = { shell = pkgs.runtimeShell; }; }
../build-support/setup-hooks/make-wrapper.sh;
makeModulesClosure = { kernel, firmware, rootModules, allowMissing ? false }: