mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
ARG BASE_IMAGE=debian:bullseye-slim
|
||
FROM $BASE_IMAGE AS xorg-deps
|
||
|
||
WORKDIR /xorg
|
||
|
||
ENV DEBIAN_FRONTEND=noninteractive
|
||
RUN set -eux; \
|
||
#
|
||
# bullseye is EOL, its Release files (esp. bullseye-security) are frozen
|
||
# and expired, so skip the valid-until check
|
||
apt-get -o Acquire::Check-Valid-Until=false update; \
|
||
apt-get install -y \
|
||
git gcc pkgconf autoconf automake libtool make xorg-dev xutils-dev \
|
||
&& rm -rf /var/lib/apt/lists/*;
|
||
|
||
COPY . /xorg/
|
||
|
||
# build xf86-video-dummy v0.3.8 with RandR support
|
||
RUN set -eux; \
|
||
cd xf86-video-dummy/v0.3.8; \
|
||
patch -p1 < ../01_v0.3.8_xdummy-randr.patch; \
|
||
autoreconf -v --install; \
|
||
./configure; \
|
||
make -j$(nproc); \
|
||
make install;
|
||
|
||
# build custom input driver
|
||
RUN set -eux; \
|
||
cd xf86-input-neko; \
|
||
./autogen.sh --prefix=/usr; \
|
||
./configure; \
|
||
make -j$(nproc); \
|
||
make install;
|
||
|
||
# artifacts from this stage
|
||
# COPY --from=xorg-deps /usr/local/lib/xorg/modules/drivers/dummy_drv.so /usr/lib/xorg/modules/drivers/dummy_drv.so
|
||
# COPY --from=xorg-deps /usr/local/lib/xorg/modules/input/neko_drv.so /usr/lib/xorg/modules/input/neko_drv.so
|