at master 1.1 kB view raw
1let 2 missingFeatures = map ({ description, ... }: description) (import ./lib/minfeatures.nix).missing; 3in 4 5if missingFeatures != [ ] then 6 7 abort '' 8 9 This version of Nixpkgs requires an implementation of Nix with the following features: 10 - ${builtins.concatStringsSep "\n- " missingFeatures} 11 12 Your are evaluating with Nix ${builtins.nixVersion or "(too old to know)"}, please upgrade: 13 14 - If you are running NixOS, `nixos-rebuild' can be used to upgrade your system. 15 16 - Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively 17 upgrade Nix. You may use `nix-env --version' to check which version you have. 18 19 - If you installed Nix using the install script (https://nixos.org/nix/install), 20 it is safe to upgrade by running it again: 21 22 curl -L https://nixos.org/nix/install | sh 23 24 For more information, please see the NixOS release notes at 25 https://nixos.org/nixos/manual or locally at 26 ${toString ./nixos/doc/manual/release-notes}. 27 28 If you need further help, see https://nixos.org/nixos/support.html 29 '' 30 31else 32 33 import ./pkgs/top-level/impure.nix