summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorIvan Yonchovski <yyoncho@users.noreply.github.com>2022-08-31 22:06:27 +0300
committerGitHub <noreply@github.com>2022-08-31 15:06:27 -0400
commitfb2773411eb591d652885f6fc63b2a6cf2cb01c9 (patch)
tree1abffd971e9816422fdb857abfe7891a7f09af46
parent538b8d40321258febd15d25db6f1dcb0988fa936 (diff)
downloadNim-fb2773411eb591d652885f6fc63b2a6cf2cb01c9.tar.gz
Change nim's nimble files to make it installable (#20179)
- 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

Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
-rw-r--r--compiler.nimble9
-rw-r--r--nim.nimble14
-rw-r--r--nimsuggest/nimsuggest.nimble8
3 files changed, 14 insertions, 17 deletions
diff --git a/compiler.nimble b/compiler.nimble
deleted file mode 100644
index f4da45519..000000000
--- 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 000000000..a629c0e04
--- /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 53b5d1d6f..000000000
--- 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"