4 , prismlauncher-unwrapped
7 , qtbase # needed for wrapQtAppsHook
24 , gamemodeSupport ? stdenv.isLinux
25 , textToSpeechSupport ? stdenv.isLinux
26 , controllerSupport ? stdenv.isLinux
27 , jdks ? [ jdk17 jdk8 ]
28 , additionalLibs ? [ ]
29 , additionalPrograms ? [ ]
32 prismlauncherFinal = prismlauncher-unwrapped.override {
33 inherit msaClientID gamemodeSupport;
37 name = "prismlauncher-${prismlauncherFinal.version}";
39 paths = [ prismlauncherFinal ];
49 ++ lib.optional (lib.versionAtLeast qtbase.version "6" && stdenv.isLinux) qtwayland;
57 runtimeLibs = (with xorg; [
75 ++ lib.optional gamemodeSupport gamemode.lib
76 ++ lib.optional textToSpeechSupport flite
77 ++ lib.optional controllerSupport libusb1
82 mesa-demos # need glxinfo
84 ++ additionalPrograms;
87 [ "--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}" ]
88 ++ lib.optionals stdenv.isLinux [
89 "--set LD_LIBRARY_PATH ${addOpenGLRunpath.driverLink}/lib:${lib.makeLibraryPath runtimeLibs}"
90 # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
91 "--prefix PATH : ${lib.makeBinPath runtimePrograms}"
94 inherit (prismlauncherFinal) meta;