From 18aaa4b38f5d7ec39a6fd00cacd75f6746145fcb Mon Sep 17 00:00:00 2001 From: Alex Boisvert Date: Thu, 22 Feb 2024 18:32:17 -0800 Subject: [PATCH] Check for 'libpcre3' on Ubuntu --- nimlangserver.nimble | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nimlangserver.nimble b/nimlangserver.nimble index bffc43d..b15ee61 100644 --- a/nimlangserver.nimble +++ b/nimlangserver.nimble @@ -1,3 +1,5 @@ +import std/distros + mode = ScriptMode.Verbose packageName = "nimlangserver" @@ -23,3 +25,15 @@ task test, "run tests": --silent --run setCommand "c", "tests/all.nim" + +task setup, "Setup": + if detectOs(Ubuntu): + foreignDep "libpcre3" + echo "" + echo "You may need to install following dependencies:" + echo "" + echoForeignDeps() + echo "" + +before install: + setupTask()