discord: add commandLineArgs (#422964)

authored by Naïm Camille Favier and committed by GitHub 86bd0597 5da7e667

+6 -2
+3 -1
pkgs/applications/networking/instant-messengers/discord/darwin.nix
··· 19 vencord, 20 withMoonlight ? false, 21 moonlight, 22 }: 23 24 assert lib.assertMsg ( ··· 64 # wrap executable to $out/bin 65 mkdir -p $out/bin 66 makeWrapper "$out/Applications/${desktopName}.app/Contents/MacOS/${binaryName}" "$out/bin/${binaryName}" \ 67 - --run ${lib.getExe disableBreakingUpdates} 68 69 runHook postInstall 70 '';
··· 19 vencord, 20 withMoonlight ? false, 21 moonlight, 22 + commandLineArgs ? "", 23 }: 24 25 assert lib.assertMsg ( ··· 65 # wrap executable to $out/bin 66 mkdir -p $out/bin 67 makeWrapper "$out/Applications/${desktopName}.app/Contents/MacOS/${binaryName}" "$out/bin/${binaryName}" \ 68 + --run ${lib.getExe disableBreakingUpdates} \ 69 + --add-flags ${lib.escapeShellArg commandLineArgs} 70 71 runHook postInstall 72 '';
+3 -1
pkgs/applications/networking/instant-messengers/discord/linux.nix
··· 69 # The intended use-case for this is when SKIP_HOST_UPDATE is enabled via other means, 70 # for example if a settings.json is linked declaratively (e.g., with home-manager). 71 disableUpdates ? true, 72 }: 73 assert lib.assertMsg ( 74 !(withMoonlight && withVencord) ··· 182 ${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \ 183 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ 184 --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \ 185 - ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} 186 187 ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ 188 # Without || true the install would fail on case-insensitive filesystems
··· 69 # The intended use-case for this is when SKIP_HOST_UPDATE is enabled via other means, 70 # for example if a settings.json is linked declaratively (e.g., with home-manager). 71 disableUpdates ? true, 72 + commandLineArgs ? "", 73 }: 74 assert lib.assertMsg ( 75 !(withMoonlight && withVencord) ··· 183 ${lib.strings.optionalString enableAutoscroll "--add-flags \"--enable-blink-features=MiddleClickAutoscroll\""} \ 184 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ 185 --prefix LD_LIBRARY_PATH : ${libPath}:$out/opt/${binaryName} \ 186 + ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} \ 187 + --add-flags ${lib.escapeShellArg commandLineArgs} 188 189 ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ 190 # Without || true the install would fail on case-insensitive filesystems