Skip to content

Commit

Permalink
Provide correct instructions how to upgrade Nix without nixpkgs.
Browse files Browse the repository at this point in the history
fixes #15344
  • Loading branch information
domenkozar committed Aug 10, 2016
1 parent ebffa9f commit 230fed5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion default.nix
Expand Up @@ -2,7 +2,23 @@ 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"
# following derivations are updated based on http://hydra.nixos.org/jobset/nix/maintenance/latest-eval

abort ''
This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
On x86_64-linux:
$ nix-env -i /nix/store/mln2lswvkyx6x7j6pcx80cyf06fsc12m-nix-1.11.2
On i686-linux:
$ nix-env -i /nix/store/fpa7k4ra0jcy1jq3cig5738dmmqsqyjc-nix-1.11.2
On x86_64-darwin:
$ nix-env -i /nix/store/mcfhmajqw93xs4bgk55822gag11qs7yk-nix-1.11.2
''

else

Expand Down

0 comments on commit 230fed5

Please sign in to comment.