diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-06-19 22:23:41 +0200 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-08-13 07:10:04 +0100 |
commit | d60de69148a124c24616a012c62123f08a49503b (patch) | |
tree | 80056a4d0536202c5bd7fb5d1f646707221451c6 /pkgs/games/prismlauncher | |
parent | 65db78515ac94cf5e3f7376b2ca51ab1a57ca4bb (diff) |
prismlauncher: add additionalPrograms parameter
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'pkgs/games/prismlauncher')
-rw-r--r-- | pkgs/games/prismlauncher/wrapper.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/games/prismlauncher/wrapper.nix b/pkgs/games/prismlauncher/wrapper.nix index 274547a59f26f..f54630e8c0543 100644 --- a/pkgs/games/prismlauncher/wrapper.nix +++ b/pkgs/games/prismlauncher/wrapper.nix @@ -21,6 +21,7 @@ , textToSpeechSupport ? stdenv.isLinux , jdks ? [ jdk17 jdk8 ] , additionalLibs ? [ ] +, additionalPrograms ? [ ] }: let prismlauncherFinal = prismlauncher-unwrapped.override { @@ -66,12 +67,17 @@ symlinkJoin { ++ lib.optional textToSpeechSupport flite ++ additionalLibs; + programs = [ + xorg.xrandr + ] + ++ additionalPrograms; + in [ "--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}" ] ++ lib.optionals stdenv.isLinux [ "--set LD_LIBRARY_PATH /run/opengl-driver/lib:${lib.makeLibraryPath libs}" # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 - "--prefix PATH : ${lib.makeBinPath [xorg.xrandr]}" + "--prefix PATH : ${lib.makeBinPath programs}" ]; inherit (prismlauncherFinal) meta; |