25 prismlauncher-unwrapped,
33 additionalPrograms ? [ ],
34 controllerSupport ? stdenv.hostPlatform.isLinux,
35 gamemodeSupport ? stdenv.hostPlatform.isLinux,
42 textToSpeechSupport ? stdenv.hostPlatform.isLinux,
45 assert lib.assertMsg (
46 controllerSupport -> stdenv.hostPlatform.isLinux
47 ) "controllerSupport only has an effect on Linux.";
49 assert lib.assertMsg (
50 textToSpeechSupport -> stdenv.hostPlatform.isLinux
51 ) "textToSpeechSupport only has an effect on Linux.";
54 prismlauncher' = prismlauncher-unwrapped.override { inherit msaClientID gamemodeSupport; };
58 name = "prismlauncher-${prismlauncher'.version}";
60 paths = [ prismlauncher' ];
62 nativeBuildInputs = [ kdePackages.wrapQtAppsHook ];
70 lib.versionAtLeast kdePackages.qtbase.version "6" && stdenv.hostPlatform.isLinux
71 ) kdePackages.qtwayland;
81 (lib.getLib stdenv.cc.cc)
102 vulkan-loader # VulkanMod's lwjgl
104 ++ lib.optional textToSpeechSupport flite
105 ++ lib.optional gamemodeSupport gamemode.lib
106 ++ lib.optional controllerSupport libusb1
111 pciutils # need lspci
112 xrandr # needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
113 ] ++ additionalPrograms;
116 [ "--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}" ]
117 ++ lib.optionals stdenv.hostPlatform.isLinux [
118 "--set LD_LIBRARY_PATH ${addDriverRunpath.driverLink}/lib:${lib.makeLibraryPath runtimeLibs}"
119 "--prefix PATH : ${lib.makeBinPath runtimePrograms}"
123 inherit (prismlauncher'.meta)