Prism Launcher

From NixOS Wiki
Revision as of 18:27, 6 November 2024 by Scrumplex (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 to LD_LIBRARY_PATH
  • additionalPrograms (default: [ ]) Additional programs that will be added to PATH
  • controllerSupport (default: stdenv.hostPlatform.isLinux) Turn on/off support for controllers on Linux. This option is not needed on macOS
  • gamemodeSupport (default: stdenv.hostPlatform.isLinux) Turn on/off support for GameMode on Linux
  • jdks (default: [ pkgs.jdk21 pkgs.jdk17 pkgs.jdk8 ]) Java runtimes that will be added to PRISMLAUNCHER_JAVA_PATHS and will be available to Prism Launcher
  • msaClientID (default: null) Client ID used for Microsoft Authentication. Prism Launcher's official ID will be used if set to null.
  • textToSpeechSupport (default stdenv.hostPlatform.isLinux) Turn on/off support for text-to-speech on Linux. This option is not needed on macOS

References