From 7e6ce462220f188ef14ad48a4240e2f1f8f1c385 Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Fri, 12 Jul 2024 22:15:20 +0200 Subject: [PATCH] fix(nimble): version gate task-level dependencies --- constantine.nimble | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/constantine.nimble b/constantine.nimble index 058e2bf2..e3ce016c 100644 --- a/constantine.nimble +++ b/constantine.nimble @@ -9,22 +9,23 @@ license = "MIT or Apache License 2.0" requires "nim >= 1.6.12" -taskRequires "make_zkalc", "jsony" -taskRequires "make_zkalc", "cliche" +when (NimMajor, NimMinor) >= (2, 0): # Task-level dependencies + taskRequires "make_zkalc", "jsony" + taskRequires "make_zkalc", "cliche" -taskRequires "test", "jsony" -taskRequires "test", "yaml" -taskRequires "test", "gmp" + taskRequires "test", "jsony" + taskRequires "test", "yaml" + taskRequires "test", "gmp" -taskRequires "test_parallel", "jsony" -taskRequires "test_parallel", "yaml" -taskRequires "test_parallel", "gmp" + taskRequires "test_parallel", "jsony" + taskRequires "test_parallel", "yaml" + taskRequires "test_parallel", "gmp" -taskRequires "test_no_gmp", "jsony" -taskRequires "test_no_gmp", "yaml" + taskRequires "test_no_gmp", "jsony" + taskRequires "test_no_gmp", "yaml" -taskRequires "test_parallel_no_gmp", "jsony" -taskRequires "test_parallel_no_gmp", "yaml" + taskRequires "test_parallel_no_gmp", "jsony" + taskRequires "test_parallel_no_gmp", "yaml" # Nimscript imports # ----------------------------------------------------------------