containers:

  sphinx:
    builder: nix
    parameters:
      config: default.nix
      attribute: sphinx

  ubuntu:
    builder: ubuntu
    uids: [0-1000, 65534]
    gids: [0-1000, 65534]
    parameters:
      repos: universe
      PPAs: hansjorg/rust
      additional_keys: 37FD5E80BD6B6386  # for rust
      packages: make checkinstall rust-0.11
    tmpfs-volumes:
      /tmp: size=1m,mode=1777
      /var/tmp: size=100m,mode=1777

commands:

  html-docs:
    description: Build HTML version of vagga documentation
    container: sphinx
    work-dir: docs
    command: make html
    epilog: |
      -------------------------------------------------
      Done. Now docs are in docs/_build/html/index.html

  build-docs:
    description: Generic documentation builder command
    container: sphinx
    work-dir: docs
    command: make

  build-ubuntu-package:
    container: ubuntu
    write-mode: transient-hard-link-copy
    command:
    - checkinstall
    - --default
    - --maintainer=paul@colomiets.name
    - --pkglicense=MIT
    - --pkgname=vagga
    - --nodoc
    - make
    - -B
    - all
    - install

containers:

  sphinx:
    builder: nix
    parameters:
      config: default.nix
      attribute: sphinx

  ubuntu:
    builder: ubuntu
    uids: [0-1000, 65534]
    gids: [0-1000, 65534]
    parameters:
      repos: universe
      PPAs: hansjorg/rust
      additional_keys: 37FD5E80BD6B6386  # for rust
      packages: make checkinstall rust-0.11
    tmpfs-volumes:
      /tmp: size=1m,mode=1777
      /var/tmp: size=100m,mode=1777

commands:

  html-docs:
    description: Build HTML version of vagga documentation
    container: sphinx
    work-dir: docs
    command: make html
    epilog: |
      -------------------------------------------------
      Done. Now docs are in docs/_build/html/index.html

  build-docs:
    description: Generic documentation builder command
    container: sphinx
    work-dir: docs
    command: make

  build-ubuntu-package:
    description: Create an ubuntu (.deb) package using checkinstall in
      container
    container: ubuntu
    write-mode: transient-hard-link-copy
    command:
    - checkinstall
    - --default
    - --maintainer=paul@colomiets.name
    - --pkglicense=MIT
    - --pkgname=vagga
    - --nodoc
    - make
    - -B
    - all
    - install

Add description for `build-ubuntu-package` command
Add description for `build-ubuntu-package` command
