
FROM ubuntu:bionic

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update                                                      \
 && apt-get -y install build-essential binutils-dev                     \
                       git cmake bison flex gcc python-dev              \
                       libboost-all-dev libboost-python-dev             \
                       zlib1g-dev libxml2-dev rapidjson-dev libbz2-dev  \
                       qtbase5-dev libqt5svg5-dev libqwt-qt5-dev        \
                       python-pyqt5                                     \
                                                                        \
                       autotools-dev automake                           \
                       libxt-dev libxpm-dev libmotif-dev                \
                                                                        \
                       yosys                                            \
                       python3-setuptools python3-pip python3-six       \
                       python3-wheel                                    \
                                                                        \
                       vim                                              \
 && apt-get clean \
 && pip3 install git+https://github.com/m-labs/nmigen.git

#                      For building with Qt 4 instead of Qt 5.
#                      qt4-dev-tools libqwt-dev python-qt4              \
