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