File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
pkgs/applications/networking/instant-messengers/discord Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 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} :
7074assert 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
You can’t perform that action at this time.
0 commit comments