* If building nixFallback fails, use nixUnstable from Nixpkgs as

a last-chance fallback.

svn path=/nixos/trunk/; revision=10050
This commit is contained in:
Eelco Dolstra 2008-01-02 15:30:31 +00:00
parent 5ec82632f2
commit 35f5252630

View File

@ -44,7 +44,9 @@ fi
# First build Nix, since NixOS may require a newer version than the
# current one. Of course, the same goes for Nixpkgs, but Nixpkgs is
# more conservative.
nix-build $NIXOS -A nixFallback -o $HOME/nix-tmp
if ! nix-build $NIXOS -A nixFallback -o $HOME/nix-tmp; then
nix-build /etc/nixos/nixpkgs -A nixUnstable -o $HOME/nix-tmp
fi
PATH=$HOME/nix-tmp/bin:$PATH