From b130e618d6e657e6b1bc6a419926c3559da6fa9f Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Thu, 4 May 2023 17:24:17 +0200 Subject: [PATCH] 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 --- pkgs/games/prismlauncher/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/prismlauncher/default.nix b/pkgs/games/prismlauncher/default.nix index 2761ab22f907..2e7defef059d 100644 --- a/pkgs/games/prismlauncher/default.nix +++ b/pkgs/games/prismlauncher/default.nix @@ -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 = ''