summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-10-12 00:45:59 +0000
committerGitHub <noreply@github.com>2018-10-12 00:45:59 +0000
commit9dd5dc57a77b1b592708a6d27fef081be0b06fa8 (patch)
tree6c662c6dc2740e941f40f03c6964cc2093682af9 /nixos/modules/system/boot/stage-1.nix
parent60ae563293ec956d683e3b9a62dbdef46f71437e (diff)
downloadnixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar
nixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.gz
nixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.bz2
nixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.lz
nixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.xz
nixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.tar.zst
nixpkgs-9dd5dc57a77b1b592708a6d27fef081be0b06fa8.zip
bootStage1: fix cross build
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix3
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 f58b68cb335..8688b5ad9bf 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
     '';