Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
3.6 kB 64 lines
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465# Build environment for the `nested-wayland-session` compositor.# The host is an immutable-style Fedora without the dev headers Smithay's build# links against, so all cargo work happens inside this container (see mise.toml).# This image is BUILD-ONLY: the resulting binary runs on the HOST Wayland session# (it is itself a nested winit client of the host compositor and needs the host# GPU), so the image carries no GUI/GL runtime, only the build toolchain and the# development libraries the crate graph links at build time.FROM registry.fedoraproject.org/fedora:41
# Build toolchain + link-time development libraries:# gcc cc for the -sys crates' small C shims# pkgconf-pkg-config pkg-config, used by wayland-sys / drm-sys to locate libs# clang, clang-devel libclang for any bindgen in the drm-sys / wayland-sys graph# wayland-devel libwayland-server, linked by wayland-backend's# server_system backend (smithay's `use_system_lib`, which# enables the EGL bind_wl_display / wl_drm accel path)# libxkbcommon-devel the `xkbcommon` crate links libxkbcommon at build time# (it is NOT dlopened, unlike winit's wayland-client), so# the header + .so must be present to link# libdrm-devel drm-ffi / drm-sys (Smithay `backend_drm`) need libdrm to# resolve the render node for dmabuf v4 feedback# mesa-libEGL-devel EGL headers, defensive: renderer_gl dlopens libEGL at# runtime, but this keeps any build-time probe satisfied# dbus-daemon private session bus used by --color-scheme integration tests# libEGL / libGLESv2 / libwayland-client themselves are dlopened by the binary at# RUNTIME on the host, so they are not part of this build image.RUN dnf install -y \ gcc \ pkgconf-pkg-config \ clang clang-devel \ wayland-devel \ libxkbcommon-devel \ libdrm-devel \ mesa-libEGL-devel \ dbus-daemon \ && dnf clean all
# Rust toolchain via rustup stable, not Fedora's `rust` package, matching the# sibling desktop-app images (Fedora 41 ships an older stable than Smithay 0.7.0# and its deps may require). RUSTUP_HOME persists in the image; the install uses a# throwaway CARGO_HOME=/usr/local so the cargo/rustc/clippy proxy shims land on the# already-persistent PATH, while the real CARGO_HOME is the /cargo named volume set# below (mounted at run time, holding only the registry/git cache).ENV RUSTUP_HOME=/rustupRUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | env CARGO_HOME=/usr/local sh -s -- -y --no-modify-path --profile minimal \ --default-toolchain stable --component clippy
# cargo-nextest is the test runner the `test` mise task invokes. Install the# prebuilt binary from get.nexte.st into /usr/local/bin (on PATH, persistent)# rather than `cargo install cargo-nextest`, which would add a multi-minute source# compile to every image rebuild. Arch-aware: get.nexte.st serves separate x86_64# and aarch64 builds.RUN arch="$(uname -m)" \ && case "$arch" in \ x86_64) nextest_url="https://get.nexte.st/latest/linux" ;; \ aarch64) nextest_url="https://get.nexte.st/latest/linux-arm" ;; \ *) echo "unsupported architecture: $arch" >&2; exit 1 ;; \ esac \ && curl --proto '=https' --tlsv1.2 --location --silent --show-error --fail "$nextest_url" \ | tar zxf - -C /usr/local/bin
ENV CARGO_HOME=/cargoWORKDIR /work