summary refs log tree commit diff stats
path: root/install_nimble.nims
blob: 5e363c6892c2c1062dbe44b393c848d73fbf2140 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
mode = ScriptMode.Verbose

var id = 0
while dirExists("nimble" & $id):
  inc id

exec "git clone https://github.com/nim-lang/nimble.git nimble" & $id

withDir "nimble" & $id & "/src":
  exec "nim c nimble"

mvFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe