wlx-overlay-s: make openvr support optional, disable on aarch64-linux (#432627)

authored by scrumplex.net and committed by GitHub 4e8da1e4 f29a3c52

+16 -3
+16 -3
pkgs/by-name/wl/wlx-overlay-s/package.nix
··· 22 22 testers, 23 23 wayland, 24 24 wlx-overlay-s, 25 + # openvr support is broken on aarch64-linux 26 + withOpenVr ? !stdenv.hostPlatform.isAarch64, 25 27 }: 26 28 27 29 rustPlatform.buildRustPackage rec { ··· 37 39 38 40 cargoHash = "sha256-em5sWSty2/pZp2jTwBnLUIBgPOcoMpwELwj984XYf+k="; 39 41 42 + # explicitly only add openvr if withOpenVr is set to true. 43 + buildNoDefaultFeatures = true; 44 + buildFeatures = [ 45 + "openxr" 46 + "osc" 47 + "x11" 48 + "wayland" 49 + "wayvr" 50 + ] 51 + ++ lib.optional withOpenVr "openvr"; 52 + 40 53 nativeBuildInputs = [ 41 54 makeWrapper 42 55 pkg-config ··· 52 65 libXext 53 66 libXrandr 54 67 libxkbcommon 55 - openvr 56 68 openxr-loader 57 69 pipewire 58 70 wayland 59 - ]; 71 + ] 72 + ++ lib.optional withOpenVr openvr; 60 73 61 74 env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib"; 62 75 ··· 79 92 license = lib.licenses.gpl3Only; 80 93 maintainers = with lib.maintainers; [ Scrumplex ]; 81 94 platforms = lib.platforms.linux; 82 - broken = stdenv.hostPlatform.isAarch64; 95 + broken = stdenv.hostPlatform.isAarch64 && withOpenVr; 83 96 mainProgram = "wlx-overlay-s"; 84 97 }; 85 98 }