diff options
author | volth <volth@webmaster.ms> | 2018-10-12 00:45:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 00:45:59 +0000 |
commit | 9dd5dc57a77b1b592708a6d27fef081be0b06fa8 (patch) | |
tree | 6c662c6dc2740e941f40f03c6964cc2093682af9 | |
parent | 60ae563293ec956d683e3b9a62dbdef46f71437e (diff) | |
download | nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.gz nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.bz2 nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.lz nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.xz nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.zst nixlib-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.zip |
bootStage1: fix cross build
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index f58b68cb3353..8688b5ad9bfb 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -251,7 +251,8 @@ let postInstall = '' echo checking syntax # check both with bash - ${pkgs.bash}/bin/sh -n $target + ${pkgs.buildPackages.bash}/bin/sh -n $target + '' + optionalString (pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) '' # and with ash shell, just in case ${extraUtils}/bin/ash -n $target ''; |