bootStage1: fix cross build
commit9dd5dc57a77b1b592708a6d27fef081be0b06fa8
authorvolth <volth@webmaster.ms>
dateFri 12 Oct 2018, 00:45 (8 years ago)
parent60ae563
nixos/modules/system/boot/stage-1.nix+2−1
@@ -251,7 +251,8 @@ let
251251 postInstall = ''
252252 echo checking syntax
253253 # check both with bash
254− ${pkgs.bash}/bin/sh -n $target
254+ ${pkgs.buildPackages.bash}/bin/sh -n $target
255+ '' + optionalString (pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) ''
255256 # and with ash shell, just in case
256257 ${extraUtils}/bin/ash -n $target
257258 '';