| 1 |
# -*- mode: ruby -*- |
| 2 |
# vi: set ft=ruby : |
| 3 |
|
| 4 |
Vagrant.configure("2") do |config| |
| 5 |
config.vm.provider "virtualbox" do |v| |
| 6 |
config.vm.box = "archlinux/archlinux" |
| 7 |
v.memory = (3 * 1024).to_s |
| 8 |
v.cpus = 4 |
| 9 |
end |
| 10 |
|
| 11 |
config.ssh.forward_x11 = true |
| 12 |
|
| 13 |
config.vm.provision "shell", inline: <<-SHELL |
| 14 |
pacman -Syu --noconfirm |
| 15 |
|
| 16 |
pacman -S --noconfirm --needed cmake ninja ccache git gcc notmuch-runtime glibmm gtkmm3 vte3 boost libsass libpeas ruby-ronn pkgconf webkit2gtk protobuf gobject-introspection xorg-xauth xorg-xclock cmark python-gobject ipython gvim w3m |
| 17 |
|
| 18 |
cat > /etc/profile.d/astroid.sh <<EOL |
| 19 |
export ASTROID_DIR=/vagrant |
| 20 |
export GI_TYPELIB_PATH=/home/vagrant/build |
| 21 |
EOL |
| 22 |
|
| 23 |
sed -e "s|#X11Forwarding no|X11Forwarding yes|" -i /etc/ssh/sshd_config |
| 24 |
|
| 25 |
SHELL |
| 26 |
|
| 27 |
config.vm.provision "shell", privileged: false, inline: <<-SHELL |
| 28 |
|
| 29 |
mkdir -p /home/vagrant/build |
| 30 |
cd /home/vagrant/build |
| 31 |
cmake -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always /vagrant |
| 32 |
|
| 33 |
SHELL |
| 34 |
end |
| 35 |
|