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 moonlight, 67 withTTS ? true, 68 enableAutoscroll ? false, 69 }: 70 assert lib.assertMsg ( 71 !(withMoonlight && withVencord) ··· 180 ${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \ 181 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ 182 --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \ 183 - --run "${lib.getExe disableBreakingUpdates}" 184 185 ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ 186 # Without || true the install would fail on case-insensitive filesystems
··· 66 moonlight, 67 withTTS ? true, 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, 73 }: 74 assert lib.assertMsg ( 75 !(withMoonlight && withVencord) ··· 184 ${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \ 185 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ 186 --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \ 187 + ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} 188 189 ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ 190 # Without || true the install would fail on case-insensitive filesystems