discord: allow not disabling updates (#412737)

authored by scrumplex.net and committed by GitHub 5b630168 47ea0ddd

+5 -1
+5 -1
pkgs/applications/networking/instant-messengers/discord/linux.nix
··· 66 66 moonlight, 67 67 withTTS ? true, 68 68 enableAutoscroll ? false, 69 + # Disabling this would normally break Discord. 70 + # The intended use-case for this is when SKIP_HOST_UPDATE is enabled via other means, 71 + # for example if a settings.json is linked declaratively (e.g., with home-manager). 72 + disableUpdates ? true, 69 73 }: 70 74 assert lib.assertMsg ( 71 75 !(withMoonlight && withVencord) ··· 180 184 ${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \ 181 185 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ 182 186 --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \ 183 - --run "${lib.getExe disableBreakingUpdates}" 187 + ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} 184 188 185 189 ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ 186 190 # Without || true the install would fail on case-insensitive filesystems