Prism Launcher: Difference between revisions
Created page with "[https://prismlauncher.org/ Prism Launcher] is a free and open source launcher for the game [https://www.minecraft.net Minecraft]. It is written in C++ and uses the Qt Toolkit. == Installation == ==== Using nix-shell ==== <syntaxhighlight lang="shell"> $ nix-shell -p prismlauncher </syntaxhighlight> ==== Using global configuration ==== <syntaxhighlight lang="nix"> environment.systemPackages = with pkgs; [ prismlauncher ]; </syntaxhighlight> ==== Using home con..." |
|||
Line 56: | Line 56: | ||
* [https://prismlauncher.org/wiki/ Prism Launcher Wiki] | * [https://prismlauncher.org/wiki/ Prism Launcher Wiki] | ||
* [https://github.com/PrismLauncher/PrismLauncher/blob/develop/nix/README.md Prism Launcher Nix documentation] | * [https://github.com/PrismLauncher/PrismLauncher/blob/develop/nix/README.md Prism Launcher Nix documentation] | ||
[[Category: Applications]] | |||
[[Category: Gaming]] |
Latest revision as of 19:46, 27 November 2024
Prism Launcher is a free and open source launcher for the game Minecraft. It is written in C++ and uses the Qt Toolkit.
Installation
Using nix-shell
$ nix-shell -p prismlauncher
Using global configuration
environment.systemPackages = with pkgs; [ prismlauncher ];
Using home configuration
home.packages = with pkgs; [ prismlauncher ];
Configuration
Basic
Configuration of the launcher itself can be done in the settings window of the launcher. Currently, there is no way to configure Prism Launcher declaratively.
Advanced
You can override prismlauncher to change the environment available to the launcher and the game. This might be useful for installing additional versions of Java or providing extra binaries needed by some mods.
environment.systemPackages = with pkgs; [
(prismlauncher.override {
# Add binary required by some mod
additionalPrograms = [ ffmpeg ];
# Change Java runtimes available to Prism Launcher
jdks = [
graalvm-ce
zulu8
zulu17
zulu
];
})
];
Useful options
All options are defined in the derivation.
additionalLibs
(default:[ ]
) Additional libraries that will be added toLD_LIBRARY_PATH
additionalPrograms
(default:[ ]
) Additional programs that will be added toPATH
controllerSupport
(default:stdenv.hostPlatform.isLinux
) Turn on/off support for controllers on Linux. This option is not needed on macOSgamemodeSupport
(default:stdenv.hostPlatform.isLinux
) Turn on/off support for GameMode on Linuxjdks
(default:[ pkgs.jdk21 pkgs.jdk17 pkgs.jdk8 ]
) Java runtimes that will be added toPRISMLAUNCHER_JAVA_PATHS
and will be available to Prism LaunchermsaClientID
(default:null
) Client ID used for Microsoft Authentication. Prism Launcher's official ID will be used if set to null.textToSpeechSupport
(defaultstdenv.hostPlatform.isLinux
) Turn on/off support for text-to-speech on Linux. This option is not needed on macOS