Skip to content

Commit 5b63016

Browse files
authored
discord: allow not disabling updates (#412737)
2 parents 47ea0dd + 2605d3a commit 5b63016

File tree

1 file changed

+5
-1
lines changed
  • pkgs/applications/networking/instant-messengers/discord

1 file changed

+5
-1
lines changed

pkgs/applications/networking/instant-messengers/discord/linux.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
moonlight,
6767
withTTS ? true,
6868
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,
6973
}:
7074
assert lib.assertMsg (
7175
!(withMoonlight && withVencord)
@@ -180,7 +184,7 @@ stdenv.mkDerivation rec {
180184
${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \
181185
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
182186
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \
183-
--run "${lib.getExe disableBreakingUpdates}"
187+
${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"}
184188
185189
ln -s $out/opt/${binaryName}/${binaryName} $out/bin/
186190
# Without || true the install would fail on case-insensitive filesystems

0 commit comments

Comments
 (0)