discord: allow not disabling updates (#412737)

This commit is contained in:
Sefa Eyeoglu 2025-05-31 22:08:47 +02:00 committed by GitHub
commit 5b6301685d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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