Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkgs/by-name/si/signal-desktop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
replaceVars,
noto-fonts-color-emoji,
nixosTests,

# command line arguments which are always set e.g "--password-store=kwallet6"
commandLineArgs ? "",

withAppleEmojis ? false,
}:
let
Expand Down Expand Up @@ -211,7 +215,8 @@ stdenv.mkDerivation (finalAttrs: {
makeWrapper '${lib.getExe electron}' "$out/bin/signal-desktop" \
--add-flags "$out/share/signal-desktop/app.asar" \
--set-default ELECTRON_FORCE_IS_PACKAGED 1 \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
--add-flags ${lib.escapeShellArg commandLineArgs}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it make more sense to use optionalString to avoid adding an extra --add-flags when there's nothing to add?


runHook postInstall
'';
Expand Down