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 testers, 23 wayland, 24 wlx-overlay-s, 25 }: 26 27 rustPlatform.buildRustPackage rec { ··· 37 38 cargoHash = "sha256-em5sWSty2/pZp2jTwBnLUIBgPOcoMpwELwj984XYf+k="; 39 40 nativeBuildInputs = [ 41 makeWrapper 42 pkg-config ··· 52 libXext 53 libXrandr 54 libxkbcommon 55 - openvr 56 openxr-loader 57 pipewire 58 wayland 59 - ]; 60 61 env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib"; 62 ··· 79 license = lib.licenses.gpl3Only; 80 maintainers = with lib.maintainers; [ Scrumplex ]; 81 platforms = lib.platforms.linux; 82 - broken = stdenv.hostPlatform.isAarch64; 83 mainProgram = "wlx-overlay-s"; 84 }; 85 }
··· 22 testers, 23 wayland, 24 wlx-overlay-s, 25 + # openvr support is broken on aarch64-linux 26 + withOpenVr ? !stdenv.hostPlatform.isAarch64, 27 }: 28 29 rustPlatform.buildRustPackage rec { ··· 39 40 cargoHash = "sha256-em5sWSty2/pZp2jTwBnLUIBgPOcoMpwELwj984XYf+k="; 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 + 53 nativeBuildInputs = [ 54 makeWrapper 55 pkg-config ··· 65 libXext 66 libXrandr 67 libxkbcommon 68 openxr-loader 69 pipewire 70 wayland 71 + ] 72 + ++ lib.optional withOpenVr openvr; 73 74 env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib"; 75 ··· 92 license = lib.licenses.gpl3Only; 93 maintainers = with lib.maintainers; [ Scrumplex ]; 94 platforms = lib.platforms.linux; 95 + broken = stdenv.hostPlatform.isAarch64 && withOpenVr; 96 mainProgram = "wlx-overlay-s"; 97 }; 98 }