Loading pkgs/applications/networking/instant-messengers/discord/darwin.nix +3 −1 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ vencord, withMoonlight ? false, moonlight, commandLineArgs ? "", }: assert lib.assertMsg ( Loading Loading @@ -64,7 +65,8 @@ stdenv.mkDerivation { # wrap executable to $out/bin mkdir -p $out/bin makeWrapper "$out/Applications/${desktopName}.app/Contents/MacOS/${binaryName}" "$out/bin/${binaryName}" \ --run ${lib.getExe disableBreakingUpdates} --run ${lib.getExe disableBreakingUpdates} \ --add-flags ${lib.escapeShellArg commandLineArgs} runHook postInstall ''; Loading pkgs/applications/networking/instant-messengers/discord/linux.nix +3 −1 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ # 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, commandLineArgs ? "", }: assert lib.assertMsg ( !(withMoonlight && withVencord) Loading Loading @@ -184,7 +185,8 @@ 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} \ ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} \ --add-flags ${lib.escapeShellArg commandLineArgs} ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ # Without || true the install would fail on case-insensitive filesystems Loading Loading
pkgs/applications/networking/instant-messengers/discord/darwin.nix +3 −1 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ vencord, withMoonlight ? false, moonlight, commandLineArgs ? "", }: assert lib.assertMsg ( Loading Loading @@ -64,7 +65,8 @@ stdenv.mkDerivation { # wrap executable to $out/bin mkdir -p $out/bin makeWrapper "$out/Applications/${desktopName}.app/Contents/MacOS/${binaryName}" "$out/bin/${binaryName}" \ --run ${lib.getExe disableBreakingUpdates} --run ${lib.getExe disableBreakingUpdates} \ --add-flags ${lib.escapeShellArg commandLineArgs} runHook postInstall ''; Loading
pkgs/applications/networking/instant-messengers/discord/linux.nix +3 −1 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ # 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, commandLineArgs ? "", }: assert lib.assertMsg ( !(withMoonlight && withVencord) Loading Loading @@ -184,7 +185,8 @@ 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} \ ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} ${lib.strings.optionalString disableUpdates "--run ${lib.getExe disableBreakingUpdates}"} \ --add-flags ${lib.escapeShellArg commandLineArgs} ln -s $out/opt/${binaryName}/${binaryName} $out/bin/ # Without || true the install would fail on case-insensitive filesystems Loading