2015-11-26 04:04:29 +01:00
|
|
|
let requiredVersion = import ./lib/minver.nix; in
|
2014-03-17 11:33:36 +01:00
|
|
|
|
2015-10-15 13:17:37 +02:00
|
|
|
if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
|
|
|
|
|
2017-03-18 20:04:07 +01:00
|
|
|
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
|
|
|
|
''
|
2014-03-17 11:33:36 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2016-04-26 19:53:31 +02:00
|
|
|
import ./pkgs/top-level/impure.nix
|