prismlauncher: allow empty msaClientID

Upstream supports leaving the value empty, which effectively disables
the code related to that client id.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2023-05-20 09:55:42 +02:00
parent fa7b31cf86
commit b130e618d6
+2 -2
View File
@@ -11,7 +11,7 @@
, tomlplusplus
, ghc_filesystem
, gamemode
, msaClientID ? ""
, msaClientID ? null
, gamemodeSupport ? true
}:
let
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
tomlplusplus
] ++ lib.optional gamemodeSupport gamemode;
cmakeFlags = lib.optionals (msaClientID != "") [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ]
cmakeFlags = lib.optionals (msaClientID != null) [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ]
++ lib.optionals (lib.versionAtLeast qtbase.version "6") [ "-DLauncher_QT_VERSION_MAJOR=6" ];
postUnpack = ''