forked from mirrors/nixpkgs
Explicitly require Nix 1.6
People using Nix < 1.6 previously got an unhelpful "infinite recursion" error.
This commit is contained in:
parent
c0f3f6e396
commit
14af15dbff
|
@ -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
|
||||||
|
|
|
@ -12,12 +12,6 @@ let lib = import ../../../lib; in lib.makeOverridable (
|
||||||
, extraBuildInputs ? []
|
, extraBuildInputs ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if ! builtins ? langVersion then
|
|
||||||
|
|
||||||
abort "This version of Nixpkgs requires Nix >= 1.2, please upgrade!"
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
allowUnfree = config.allowUnfree or true && builtins.getEnv "HYDRA_DISALLOW_UNFREE" != "1";
|
allowUnfree = config.allowUnfree or true && builtins.getEnv "HYDRA_DISALLOW_UNFREE" != "1";
|
||||||
|
|
Loading…
Reference in a new issue