23 rustPlatform.buildRustPackage rec {
24 pname = "wlx-overlay-s";
27 src = fetchFromGitHub {
29 repo = "wlx-overlay-s";
31 hash = "sha256-4sW/WxoN5jAomA/aFAAH8z8CAB7zsevpBllSwaQWSmU=";
35 lockFile = ./Cargo.lock;
37 "ovr_overlay-0.0.0" = "sha256-d38LqhKOp9tHbiK4eU7OPdFvkExqaJN1tB6y2qqPm9U=";
38 "vulkano-0.34.0" = "sha256-o1KP/mscMG5j3U3xtei/2nMNEh7jLedcW1P0gL9Y1Rc=";
39 "wlx-capture-0.3.11" = "sha256-CmFnVfA3MAYXSejn9GpuaNCRu4HiX0CN0j3aN4Pxvjw=";
46 rustPlatform.bindgenHook
62 env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib";
65 substituteAllInPlace src/res/watch.yaml \
66 --replace '"pactl"' '"${lib.getExe' pulseaudio "pactl"}"'
68 # TODO: src/res/keyboard.yaml references 'whisper_stt'
72 patchelf $out/bin/wlx-overlay-s \
73 --add-needed ${lib.getLib wayland}/lib/libwayland-client.so.0 \
74 --add-needed ${lib.getLib libxkbcommon}/lib/libxkbcommon.so.0
78 tests.testVersion = testers.testVersion { package = wlx-overlay-s; };
80 updateScript = nix-update-script { };
84 description = "Wayland/X11 desktop overlay for SteamVR and OpenXR, Vulkan edition";
85 homepage = "https://github.com/galister/wlx-overlay-s";
86 license = lib.licenses.gpl3Only;
87 maintainers = with lib.maintainers; [ Scrumplex ];
88 platforms = lib.platforms.linux;
89 broken = stdenv.isAarch64;
90 mainProgram = "wlx-overlay-s";