prismlauncher: move shellWrapper to let block

This commit is contained in:
Jacob Birkett 2023-10-04 22:31:48 -07:00 committed by Jacob Birkett
parent 915431fb2d
commit 8be05482df

View file

@ -34,13 +34,6 @@
# `LD_LIBRARY_PATH` so that the launcher can use the correct one
# depending on the desktop environment used.
, withWaylandGLFW ? false
# By default, this package uses a binary wrapper for `wrapQtAppsHook`.
# Enabling `shellWrapper` will add `makeWrapper` to `nativeBuildInputs`,
# causing `wrapQtAppsHook` to output a shell wrapper instead.
# This is needed for checking environment variables at runtime
# and modifying others if necessary (see above option for example).
# Warning: This can make the program start slower, by about four milliseconds.
, shellWrapper ? withWaylandGLFW
, jdks ? [ jdk17 jdk8 ]
, additionalLibs ? [ ]
@ -48,13 +41,21 @@
}:
assert lib.assertMsg (withWaylandGLFW -> stdenv.isLinux) "withWaylandGLFW is only available on Linux";
assert lib.assertMsg (withWaylandGLFW -> shellWrapper) "withWaylandGLFW requires shellWrapper";
let
# By default, this package uses a binary wrapper for `wrapQtAppsHook`.
# Enabling `shellWrapper` will add `makeWrapper` to `nativeBuildInputs`,
# causing `wrapQtAppsHook` to output a shell wrapper instead.
# This is needed for checking environment variables at runtime
# and modifying others if necessary (see above option for example).
# Warning: This can make the program start slower, by about four milliseconds.
shellWrapper = withWaylandGLFW;
prismlauncherFinal = prismlauncher-unwrapped.override {
inherit msaClientID gamemodeSupport;
};
in
symlinkJoin {
name = "prismlauncher-${prismlauncherFinal.version}";