mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
I have tested it locally with the following in my local packages_official.json
```
{
"name": "compiler",
"url": "https://github.com/yyoncho/Nim.git/?subdir=compiler",
"method": "git",
"tags": [
"library",
"compiler"
],
"description": "Package providing the Nim compiler binaries plus all its source files that can be used as a library",
"license": "MIT",
"web": "https://github.com/nim-lang/Nim"
},
{
"name": "nimsuggest",
"url": "https://github.com/yyoncho/Nim.git/?nimsuggest=compiler",
"method": "git",
"tags": [
"library",
"compiler"
],
"description": "Package providing the Nim compiler binaries plus all its source files that can be used as a library",
"license": "MIT",
"web": "https://github.com/nim-lang/Nim"
},
```
Then `nimble install compiler`, `nimble install nimsuggest` work as expected.
18 lines
709 B
Nim
18 lines
709 B
Nim
include "lib/system/compilation.nim"
|
|
version = $NimMajor & "." & $NimMinor & "." & $NimPatch
|
|
author = "Andreas Rumpf"
|
|
description = "Nim package providing the compiler binary"
|
|
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_v2" , "drnim" , "nimdoc", "testament"]
|
|
|
|
before install:
|
|
when defined(windows):
|
|
if not "bin\nim.exe".fileExists:
|
|
exec "build_all.bat"
|
|
else:
|
|
if not "bin/nim".fileExists:
|
|
exec "./build_all.sh"
|