simplify install
This commit is contained in:
parent
773d4f9f5f
commit
ca7b37bb05
2 changed files with 18 additions and 2 deletions
|
|
@ -27,6 +27,11 @@ nimble install "http://github.com/genotrance/nimtreesitter?subdir=treesitter_cpp
|
||||||
|
|
||||||
nimble install http://github.com/genotrance/nimterop
|
nimble install http://github.com/genotrance/nimterop
|
||||||
```
|
```
|
||||||
|
or:
|
||||||
|
```bash
|
||||||
|
git clone http://github.com/genotrance/nimterop && cd nimterop
|
||||||
|
nimble installWithDeps
|
||||||
|
```
|
||||||
|
|
||||||
This will download and install nimterop in the standard Nimble package location, typically ~/.nimble. Once installed, it can be imported into any Nim program.
|
This will download and install nimterop in the standard Nimble package location, typically ~/.nimble. Once installed, it can be imported into any Nim program.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,19 @@ installDirs = @["nimterop"]
|
||||||
|
|
||||||
requires "nim >= 0.19.0", "treesitter >= 0.1.0", "treesitter_c >= 0.1.0", "treesitter_cpp >= 0.1.0", "regex >= 0.10.0"
|
requires "nim >= 0.19.0", "treesitter >= 0.1.0", "treesitter_c >= 0.1.0", "treesitter_cpp >= 0.1.0", "regex >= 0.10.0"
|
||||||
|
|
||||||
|
proc execCmd(cmd:string)=
|
||||||
|
echo cmd
|
||||||
|
exec cmd
|
||||||
|
|
||||||
task test, "Test":
|
task test, "Test":
|
||||||
exec "nim c -r tests/tnimterop"
|
execCmd "nim c -r tests/tnimterop"
|
||||||
|
|
||||||
task testext, "Test":
|
task testext, "Test":
|
||||||
exec "nim c -r tests/tnimteropext"
|
execCmd "nim c -r tests/tnimteropext"
|
||||||
|
|
||||||
|
task installWithDeps, "install dependencies":
|
||||||
|
for a in ["http://github.com/genotrance/nimtreesitter?subdir=treesitter",
|
||||||
|
"http://github.com/genotrance/nimtreesitter?subdir=treesitter_c",
|
||||||
|
"http://github.com/genotrance/nimtreesitter?subdir=treesitter_cpp",]:
|
||||||
|
execCmd "nimble install -y " & a
|
||||||
|
execCmd "nimble install"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue