Permalink
Browse files

nixos-rebuild: Update fallback code to update Nix

  • Loading branch information...
edolstra committed Jan 27, 2015
1 parent 6f8fad2 commit 53710c752a85f00658882531bc90a23a3d1287e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 nixos/modules/installer/tools/nixos-rebuild.sh
@@ -148,9 +148,9 @@ if [ -n "$buildNix" ]; then
if ! nix-build '<nixpkgs>' -A nix -o $tmpDir/nix "${extraBuildFlags[@]}" > /dev/null; then
machine="$(uname -m)"
if [ "$machine" = x86_64 ]; then
nixStorePath=/nix/store/d34q3q2zj9nriq4ifhn3dnnngqvinjb3-nix-1.7
nixStorePath=/nix/store/ffig6yaggbh12dh9y5pnf1grf5lqyipz-nix-1.8
elif [[ "$machine" =~ i.86 ]]; then
nixStorePath=/nix/store/qlah0darpcn6sf3lr2226rl04l1gn4xz-nix-1.7
nixStorePath=/nix/store/lglhfp4mimfa5wzjjf1kqz6f5wlsj2mn-nix-1.8
else
echo "$0: unsupported platform"
exit 1

3 comments on commit 53710c7

@domenkozar

This comment has been minimized.

Member

domenkozar replied Jan 27, 2015

Is that something that will upgrade Nix before executing new nixpkgs top level default.nix?

@domenkozar

This comment has been minimized.

Member

domenkozar replied Jan 27, 2015

Added to #4442

@edolstra

This comment has been minimized.

Member

edolstra replied Jan 27, 2015

@iElectric Yes.

Please sign in to comment.