File: Vagrantfile

package info (click to toggle)
astroidmail 0.16%2B20240629-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,140 kB
  • sloc: cpp: 21,133; ansic: 1,619; python: 93; sh: 73; makefile: 11
file content (35 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (4)
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
35
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.provider "virtualbox" do |v|
    config.vm.box = "archlinux/archlinux"
    v.memory = (3 * 1024).to_s
    v.cpus   = 4
  end

  config.ssh.forward_x11 = true

  config.vm.provision "shell", inline: <<-SHELL
    pacman -Syu --noconfirm

    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

    cat > /etc/profile.d/astroid.sh <<EOL
      export ASTROID_DIR=/vagrant
      export GI_TYPELIB_PATH=/home/vagrant/build
EOL

    sed -e "s|#X11Forwarding no|X11Forwarding yes|" -i /etc/ssh/sshd_config

  SHELL

  config.vm.provision "shell", privileged: false, inline: <<-SHELL

    mkdir -p /home/vagrant/build
    cd /home/vagrant/build
    cmake -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always /vagrant

  SHELL
end