Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions pkgs/by-name/si/signal-desktop-bin/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
libpulseaudio,
xdg-utils,
wayland,

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

{
Expand Down Expand Up @@ -255,6 +258,7 @@ stdenv.mkDerivation rec {
gappsWrapperArgs+=(
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
--add-flags ${lib.escapeShellArg commandLineArgs}
)

# Fix the desktop link
Expand Down
10 changes: 7 additions & 3 deletions pkgs/by-name/si/signal-desktop-bin/package.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{ stdenv, callPackage }:
{
stdenv,
callPackage,
commandLineArgs ? "",
}:
if stdenv.hostPlatform.system == "aarch64-linux" then
callPackage ./signal-desktop-aarch64.nix { }
callPackage ./signal-desktop-aarch64.nix { inherit commandLineArgs; }
else if stdenv.hostPlatform.isDarwin then
callPackage ./signal-desktop-darwin.nix { }
else
callPackage ./signal-desktop.nix { }
callPackage ./signal-desktop.nix { inherit commandLineArgs; }
10 changes: 5 additions & 5 deletions pkgs/by-name/si/signal-desktop-bin/signal-desktop-aarch64.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ callPackage }:
callPackage ./generic.nix { } {
{ callPackage, commandLineArgs }:
callPackage ./generic.nix { inherit commandLineArgs; } {
pname = "signal-desktop-bin";
version = "7.55.0";
version = "7.58.0";

libdir = "usr/lib64/signal-desktop";
bindir = "usr/bin";
Expand All @@ -10,6 +10,6 @@ callPackage ./generic.nix { } {
bsdtar -xf $downloadedFile -C "$out"
'';

url = "https://download.copr.fedorainfracloud.org/results/useidel/signal-desktop/fedora-42-aarch64/09073923-signal-desktop/signal-desktop-7.55.0-1.fc42.aarch64.rpm";
hash = "sha256-rRt2hYyj6kyN0RCupy+hpRJuzq0aaUzP2tsVr2Qd5V4=";
url = "https://download.copr.fedorainfracloud.org/results/useidel/signal-desktop/fedora-42-aarch64/09183198-signal-desktop/signal-desktop-7.58.0-1.fc42.aarch64.rpm";
hash = "sha256-0Ix+1SdvmKLVbtGzbjUupvVzdWAJFNQ6sSAIt+T9fHo=";
}
4 changes: 2 additions & 2 deletions pkgs/by-name/si/signal-desktop-bin/signal-desktop-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "signal-desktop-bin";
version = "7.55.0";
version = "7.58.0";

src = fetchurl {
url = "https://updates.signal.org/desktop/signal-desktop-mac-universal-${finalAttrs.version}.dmg";
hash = "sha256-9PD4SDTACjKSBqIdv3CFtKhRKA5ugbQe2AcWA4hFoqs=";
hash = "sha256-yOPYG9bCSCIE1L8RgEXCy6pJUHONBh9SpPY4WDfZEho=";
};
sourceRoot = ".";

Expand Down
8 changes: 4 additions & 4 deletions pkgs/by-name/si/signal-desktop-bin/signal-desktop.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ callPackage }:
callPackage ./generic.nix { } rec {
{ callPackage, commandLineArgs }:
callPackage ./generic.nix { inherit commandLineArgs; } rec {
pname = "signal-desktop-bin";
version = "7.55.0";
version = "7.58.0";

libdir = "opt/Signal";
bindir = libdir;
extractPkg = "dpkg-deb -x $downloadedFile $out";

url = "https://updates.signal.org/desktop/apt/pool/s/signal-desktop/signal-desktop_${version}_amd64.deb";
hash = "sha256-uc623M/GiIfED1mTFnXUggnFdvDBmngrsdTIlq6QxqM=";
hash = "sha256-zZ63AE+qb0lrGtGUtU4FV6pHDO2DUV2vknz3a4+f4aA=";
}
Loading