summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2025-05-31 22:08:47 +0200
committerGitHub <noreply@github.com>2025-05-31 22:08:47 +0200
commit5b6301685d4c472594bc003591dfef711c1ee176 (patch)
tree91d8917e57468b9f551dde7d5104da3e1e92ccd0
parentpython3Packages.pymupdf: propagate mupdf better (#412508) (diff)
parentdiscord: allow not disabling updates (diff)
downloadnixpkgs-5b6301685d4c472594bc003591dfef711c1ee176.tar.gz
discord: allow not disabling updates (#412737)
-rw-r--r--pkgs/applications/networking/instant-messengers/discord/linux.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/linux.nix b/pkgs/applications/networking/instant-messengers/discord/linux.nix
index bf94609409a8..be1542797e95 100644
--- a/pkgs/applications/networking/instant-messengers/discord/linux.nix
+++ b/pkgs/applications/networking/instant-messengers/discord/linux.nix
@@ -66,6 +66,10 @@
moonlight,
withTTS ? true,
enableAutoscroll ? false,
+ # Disabling this would normally break Discord.
+ # The intended use-case for this is when SKIP_HOST_UPDATE is enabled via other means,
+ # for example if a settings.json is linked declaratively (e.g., with home-manager).
+ disableUpdates ? true,
}:
assert lib.assertMsg (
!(withMoonlight && withVencord)
@@ -180,7 +184,7 @@ stdenv.mkDerivation rec {
${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
--prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \
- --run "${lib.getExe disableBreakingUpdates}"
+ ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"}
ln -s $out/opt/${binaryName}/${binaryName} $out/bin/
# Without || true the install would fail on case-insensitive filesystems