mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
prismlauncher: move shellWrapper to let block
This commit is contained in:
parent
915431fb2d
commit
8be05482df
|
@ -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}";
|
||||
|
||||
|
|
Loading…
Reference in a new issue