{ alsa-lib, dbus, fetchFromGitHub, fontconfig, lib, libGL, libX11, libXext, libXrandr, libxkbcommon, makeWrapper, nix-update-script, openvr, openxr-loader, pipewire, pkg-config, pulseaudio, rustPlatform, shaderc, stdenv, testers, wayland, wlx-overlay-s, }: rustPlatform.buildRustPackage rec { pname = "wlx-overlay-s"; version = "25.3.0"; src = fetchFromGitHub { owner = "galister"; repo = "wlx-overlay-s"; rev = "v${version}"; hash = "sha256-m2YVXF9bEjovZOWa+X1CYHAUaAsUI4dBMG2ni3jP9L4="; }; useFetchCargoVendor = true; cargoHash = "sha256-y4pWUQFPR0jOTdukQZe4d1v0DFDfQtAg0Bi4V4ue5+Y="; nativeBuildInputs = [ makeWrapper pkg-config rustPlatform.bindgenHook ]; buildInputs = [ alsa-lib dbus fontconfig libGL libX11 libXext libXrandr libxkbcommon openvr openxr-loader pipewire wayland ]; env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib"; postPatch = '' substituteAllInPlace src/res/watch.yaml \ --replace '"pactl"' '"${lib.getExe' pulseaudio "pactl"}"' # TODO: src/res/keyboard.yaml references 'whisper_stt' ''; passthru = { tests.testVersion = testers.testVersion { package = wlx-overlay-s; }; updateScript = nix-update-script { }; }; meta = { description = "Wayland/X11 desktop overlay for SteamVR and OpenXR, Vulkan edition"; homepage = "https://github.com/galister/wlx-overlay-s"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ Scrumplex ]; platforms = lib.platforms.linux; broken = stdenv.hostPlatform.isAarch64; mainProgram = "wlx-overlay-s"; }; }