2 requiredVersion = import ./lib/minver.nix;
5 if !builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
9 This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
11 - If you are running NixOS, `nixos-rebuild' can be used to upgrade your system.
13 - Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively
14 upgrade Nix. You may use `nix-env --version' to check which version you have.
16 - If you installed Nix using the install script (https://nixos.org/nix/install),
17 it is safe to upgrade by running it again:
19 curl -L https://nixos.org/nix/install | sh
21 For more information, please see the NixOS release notes at
22 https://nixos.org/nixos/manual or locally at
23 ${toString ./nixos/doc/manual/release-notes}.
25 If you need further help, see https://nixos.org/nixos/support.html
30 import ./pkgs/top-level/impure.nix