Explicitly require Nix 1.6

People using Nix < 1.6 previously got an unhelpful "infinite
recursion" error.
This commit is contained in:
Eelco Dolstra 2014-03-17 11:33:36 +01:00
parent c0f3f6e396
commit 14af15dbff
2 changed files with 7 additions and 7 deletions

View File

@ -1 +1,7 @@
import ./pkgs/top-level/all-packages.nix
if ! builtins ? nixVersion || builtins.compareVersions "1.6" builtins.nixVersion == 1 then
abort "This version of Nixpkgs requires Nix >= 1.6, please upgrade!"
else
import ./pkgs/top-level/all-packages.nix

View File

@ -12,12 +12,6 @@ let lib = import ../../../lib; in lib.makeOverridable (
, extraBuildInputs ? []
}:
if ! builtins ? langVersion then
abort "This version of Nixpkgs requires Nix >= 1.2, please upgrade!"
else
let
allowUnfree = config.allowUnfree or true && builtins.getEnv "HYDRA_DISALLOW_UNFREE" != "1";