discord: allow not disabling updates (#412737)
This commit is contained in:
commit
5b6301685d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user