git.iko.soy/typeable/nixpkgs
on master help sign in
nixos-rebuild: Fix Nix fallback

Somebody forgot that Bash is not a real programming language...

commitc94f8a4abd521debf926be2f8523edcf643a8ce2 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateWed 30 Mar 2016, 16:12 (11 years ago) parent532beaa
1 file changed+2−2
nixos/modules/installer/tools/nixos-rebuild.sh+2−2
nixos/modules/installer/tools/nixos-rebuild.sh+2−2
@@ -257,9 +257,9 @@ fi
257257prebuiltNix() {
258258 machine="$1"
259259 if [ "$machine" = x86_64 ]; then
260− return /nix/store/xryr9g56h8yjddp89d6dw12anyb4ch7c-nix-1.10
260+ echo /nix/store/xryr9g56h8yjddp89d6dw12anyb4ch7c-nix-1.10
261261 elif [[ "$machine" =~ i.86 ]]; then
262− return /nix/store/2w92k5wlpspf0q2k9mnf2z42prx3bwmv-nix-1.10
262+ echo /nix/store/2w92k5wlpspf0q2k9mnf2z42prx3bwmv-nix-1.10
263263 else
264264 echo "$0: unsupported platform"
265265 exit 1