Prism Launcher
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