Merge pull request #11272 from ebzzry/minver2

Expose minimum required Nix version (2)
This commit is contained in:
Eelco Dolstra 2015-12-04 17:21:37 +01:00
commit 0b12e12843
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
let requiredVersion = "1.10"; in
let requiredVersion = import ./lib/minver.nix; in
if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then

2
lib/minver.nix Normal file
View File

@ -0,0 +1,2 @@
# Expose the minimum required version for evaluating Nixpkgs
"1.10"