1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00

Expose minimum required Nix version.

This commit is contained in:
Rommel M. Martinez 2015-11-26 11:04:29 +08:00
parent 38196171e8
commit 31a20f38ac
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"