-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
34 lines (29 loc) · 982 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
end
config.vm.provision "shell", privileged: false, inline: <<-SHELL
#sudo apt-get update && sudo apt-get upgrade
#sudo apt-get install -y git build-essential unzip
# Install Nim and bootstrap it
git clone https://github.com/nim-lang/Nim.git
cd Nim
git clone --depth 1 https://github.com/nim-lang/csources
cd csources && sh build.sh
cd ..
bin/nim c koch
./koch boot -d:release
# Fix up path to see nim and binaries installed by nimble
echo 'export PATH="$HOME/Nim/bin:$HOME/.nimble/bin:$PATH"' >> ~/.profile
export PATH="$HOME/Nim/bin:$HOME/.nimble/bin:$PATH"
# Then install nimble
nim e install_nimble.nims
# Let it refresh the package list
nimble refresh
# Use nimble to install c2nim
nimble install c2nim
SHELL
end