@@ -25,7 +25,7 @@ let
2525 else "");
2626in stdenv.mkDerivation rec {
2727 pname = "signal-desktop";
28− version = "1.40.1"; # Please backport all updates to the stable channel.
28+ version = "5.0.0"; # Please backport all updates to the stable channel.
2929 # All releases have a limited lifetime and "expire" 90 days after the release.
3030 # When releases "expire" the application becomes unusable until an update is
3131 # applied. The expiration date for the current release can be extracted with:
@@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
3535
3636 src = fetchurl {
3737 url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb";
38− sha256 = "0k57r1x64w38n0295qdrf3p19d3z8m530h46ps0j2x0krhah47w7";
38+ sha256 = "17hxg61m9kk1kph6ifqy6507kzx5hi6yafr2mj8n0a6c39vc8f9g";
3939 };
4040
4141 nativeBuildInputs = [
@@ -96,6 +96,8 @@ in stdenv.mkDerivation rec {
9696 dontAutoPatchelf = true;
9797
9898 installPhase = ''
99+ runHook preInstall
100+
99101 mkdir -p $out/lib
100102
101103 mv usr/share $out/share
@@ -109,6 +111,8 @@ in stdenv.mkDerivation rec {
109111 # Symlink to bin
110112 mkdir -p $out/bin
111113 ln -s $out/lib/Signal/signal-desktop $out/bin/signal-desktop
114+
115+ runHook postInstall
112116 '';
113117
114118 preFixup = ''
@@ -136,7 +140,7 @@ in stdenv.mkDerivation rec {
136140 '';
137141 homepage = "https://signal.org/";
138142 changelog = "https://github.com/signalapp/Signal-Desktop/releases/tag/v${version}";
139− license = lib.licenses.gpl3;
143+ license = lib.licenses.agpl3Only;
140144 maintainers = with lib.maintainers; [ ixmatus primeos equirosa ];
141145 platforms = [ "x86_64-linux" ];
142146 };