-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create compiler and nimsuggest packages (#22118)
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.
- Loading branch information
Showing
5 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,3 +111,4 @@ nimdoc.out.css | |
# except here: | ||
!/nimdoc/testproject/expected/* | ||
pkgs/ | ||
/compiler/compiler/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
include "../lib/system/compilation.nim" | ||
version = $NimMajor & "." & $NimMinor & "." & $NimPatch | ||
author = "Andreas Rumpf" | ||
description = "Compiler package providing the compiler sources as a library." | ||
license = "MIT" | ||
skipDirs = @["."] | ||
installDirs = @["compiler"] | ||
|
||
import os | ||
|
||
var compilerDir = "" | ||
|
||
before install: | ||
rmDir("compiler") | ||
|
||
let | ||
files = listFiles(".") | ||
dirs = listDirs(".") | ||
|
||
mkDir("compiler") | ||
|
||
for f in files: | ||
cpFile(f, "compiler" / f) | ||
|
||
for d in dirs: | ||
cpDir(d, "compiler" / d) | ||
|
||
requires "nim" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
version = "0.1.0" | ||
author = "Andreas Rumpf" | ||
description = "Tool for providing auto completion data for Nim source code." | ||
license = "MIT" | ||
|
||
include "../lib/system/compilation.nim" | ||
version = $NimMajor & "." & $NimMinor & "." & $NimPatch | ||
author = "Andreas Rumpf" | ||
description = "Tool for providing auto completion data for Nim source code." | ||
license = "MIT" | ||
bin = @["nimsuggest"] | ||
|
||
requires "nim >= 1.1.1" | ||
requires "compiler >= 1.9.0" , "checksums" |