From 364eb3696cf574799392bbd8d090f561b4108d21 Mon Sep 17 00:00:00 2001 From: Ivan Yonchovski Date: Tue, 2 Aug 2022 14:32:11 +0300 Subject: [PATCH] Change nim's nimble files to make it installable - needs #20168 to make the stuff working I went for this minimal solution because it seems like `compiler.nimble` and `nimsuggest.nimble` are not in use --- compiler.nimble | 9 --------- nim.nimble | 14 ++++++++++++++ nimsuggest/nimsuggest.nimble | 8 -------- 3 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 compiler.nimble create mode 100644 nim.nimble delete mode 100644 nimsuggest/nimsuggest.nimble diff --git a/compiler.nimble b/compiler.nimble deleted file mode 100644 index f4da45519d82..000000000000 --- a/compiler.nimble +++ /dev/null @@ -1,9 +0,0 @@ - -version = system.NimVersion -author = "Andreas Rumpf" -description = "Compiler package providing the compiler sources as a library." -license = "MIT" - -installDirs = @["compiler", "nimsuggest"] - -requires "nim >= 0.14.0" diff --git a/nim.nimble b/nim.nimble new file mode 100644 index 000000000000..a629c0e04b3f --- /dev/null +++ b/nim.nimble @@ -0,0 +1,14 @@ +version = system.NimVersion +author = "Andreas Rumpf" +description = "Compiler package providing the compiler sources as a library." +license = "MIT" + +bin = @["compiler/nim", "nimsuggest/nimsuggest"] +skipFiles = @["azure-pipelines.yml" , "build_all.bat" , "build_all.sh" , "build_nimble.bat" , "build_nimble.sh" , "changelog.md" , "koch.nim.cfg" , "nimblemeta.json" , "readme.md" , "security.md" ] +skipDirs = @["build" , "changelogs" , "ci" , "csources_v1" , "drnim" , "nimdoc", "testament"] + +before install: + when defined(windows): + exec "./build_all.bat" + else: + exec "./build_all.sh" diff --git a/nimsuggest/nimsuggest.nimble b/nimsuggest/nimsuggest.nimble deleted file mode 100644 index 53b5d1d6fc59..000000000000 --- a/nimsuggest/nimsuggest.nimble +++ /dev/null @@ -1,8 +0,0 @@ -version = "0.1.0" -author = "Andreas Rumpf" -description = "Tool for providing auto completion data for Nim source code." -license = "MIT" - -bin = @["nimsuggest"] - -requires "nim >= 1.1.1"