at 25.11-pre 972 B view raw
1let 2 requiredVersion = import ./lib/minver.nix; 3in 4 5if !builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then 6 7 abort '' 8 9 This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade: 10 11 - If you are running NixOS, `nixos-rebuild' can be used to upgrade your system. 12 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. 15 16 - If you installed Nix using the install script (https://nixos.org/nix/install), 17 it is safe to upgrade by running it again: 18 19 curl -L https://nixos.org/nix/install | sh 20 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}. 24 25 If you need further help, see https://nixos.org/nixos/support.html 26 '' 27 28else 29 30 import ./pkgs/top-level/impure.nix