Merge pull request #24017 from dezgeg/pr-nix-upgrade
default.nix: Provide correct instructions how to upgrade Nix
This commit is contained in:
commit
81ebc070ba
1 changed files with 11 additions and 1 deletions
12
default.nix
12
default.nix
|
@ -2,7 +2,17 @@ let requiredVersion = import ./lib/minver.nix; in
|
|||
|
||||
if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
|
||||
|
||||
abort "This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade! See https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_evaluate_Nixpkgs"
|
||||
abort ''
|
||||
|
||||
This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
|
||||
|
||||
- If you are running NixOS, use `nixos-rebuild' to upgrade your system.
|
||||
|
||||
- If you installed Nix using the install script (https://nixos.org/nix/install),
|
||||
it is safe to upgrade by running it again:
|
||||
|
||||
curl https://nixos.org/nix/install | sh
|
||||
''
|
||||
|
||||
else
|
||||
|
||||
|
|
Loading…
Reference in a new issue