{ pkgs, lib, ... }: let # Loaded at runtime via dlopen by wayland-client / xkbcommon / EGL crates. runtimeLibs = with pkgs; [ wayland libxkbcommon libGL ]; in { languages = { rust = { enable = true; components = [ "rustc" "cargo" "clippy" "rustfmt" "rust-analyzer" ]; }; }; packages = with pkgs; [ marksman pkg-config wayland-protocols wayland-scanner fontconfig freetype # Linked by the `dbus` crate (system tray). dbus ] ++ runtimeLibs; env.LD_LIBRARY_PATH = lib.makeLibraryPath runtimeLibs; }