29 rustPlatform.buildRustPackage rec {
30 pname = "wlx-overlay-s";
33 src = fetchFromGitHub {
35 repo = "wlx-overlay-s";
37 hash = "sha256-Gk/3m4eWFZqeQBphBUTGAUqe8SspXqut8n4JM8tTe6o=";
41 lockFile = ./Cargo.lock;
43 "libmonado-rs-0.1.0" = "sha256-ja7OW/YSmfzaQoBhu6tec9v8fyNDknLekE2eY7McLPE=";
44 "openxr-0.18.0" = "sha256-ktkbhmExstkNJDYM/HYOwAwv3acex7P9SP0KMAOKhQk=";
45 "ovr_overlay-0.0.0" = "sha256-5IMEI0IPTacbA/1gibYU7OT6r+Bj+hlQjDZ3Kg0L2gw=";
46 "vulkano-0.34.0" = "sha256-0ZIxU2oItT35IFnS0YTVNmM775x21gXOvaahg/B9sj8=";
47 "wlx-capture-0.3.12" = "sha256-32WnAnNUSfsAA8WB9da3Wqb4acVlXh6HWsY9tPzCHEE=";
54 rustPlatform.bindgenHook
70 env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib";
73 substituteAllInPlace src/res/watch.yaml \
74 --replace '"pactl"' '"${lib.getExe' pulseaudio "pactl"}"'
76 # TODO: src/res/keyboard.yaml references 'whisper_stt'
80 patchelf $out/bin/wlx-overlay-s \
81 --add-needed ${lib.getLib wayland}/lib/libwayland-client.so.0 \
82 --add-needed ${lib.getLib libxkbcommon}/lib/libxkbcommon.so.0 \
83 --add-needed ${lib.getLib libGL}/lib/libEGL.so.1 \
84 --add-needed ${lib.getLib libGL}/lib/libGL.so.1 \
85 --add-needed ${lib.getLib vulkan-loader}/lib/libvulkan.so.1 \
86 --add-needed ${lib.getLib libuuid}/lib/libuuid.so.1
90 tests.testVersion = testers.testVersion { package = wlx-overlay-s; };
92 updateScript = nix-update-script { };
96 description = "Wayland/X11 desktop overlay for SteamVR and OpenXR, Vulkan edition";
97 homepage = "https://github.com/galister/wlx-overlay-s";
98 license = lib.licenses.gpl3Only;
99 maintainers = with lib.maintainers; [ Scrumplex ];
100 platforms = lib.platforms.linux;
101 broken = stdenv.hostPlatform.isAarch64;
102 mainProgram = "wlx-overlay-s";