From 6a47e84e44f23e8016918b61f24fce4e7ab1c098 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Tue, 13 Apr 2021 13:42:44 +0200 Subject: [PATCH] signal-desktop: 1.40.1 -> 5.0.0 (#119309) --- .../instant-messengers/signal-desktop/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix index e821e182cd40..98ede215e029 100644 --- a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix @@ -25,7 +25,7 @@ let else ""); in stdenv.mkDerivation rec { pname = "signal-desktop"; - version = "1.40.1"; # Please backport all updates to the stable channel. + version = "5.0.0"; # Please backport all updates to the stable channel. # All releases have a limited lifetime and "expire" 90 days after the release. # When releases "expire" the application becomes unusable until an update is # applied. The expiration date for the current release can be extracted with: @@ -35,7 +35,7 @@ in stdenv.mkDerivation rec { src = fetchurl { url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb"; - sha256 = "0k57r1x64w38n0295qdrf3p19d3z8m530h46ps0j2x0krhah47w7"; + sha256 = "17hxg61m9kk1kph6ifqy6507kzx5hi6yafr2mj8n0a6c39vc8f9g"; }; nativeBuildInputs = [ @@ -96,6 +96,8 @@ in stdenv.mkDerivation rec { dontAutoPatchelf = true; installPhase = '' + runHook preInstall + mkdir -p $out/lib mv usr/share $out/share @@ -109,6 +111,8 @@ in stdenv.mkDerivation rec { # Symlink to bin mkdir -p $out/bin ln -s $out/lib/Signal/signal-desktop $out/bin/signal-desktop + + runHook postInstall ''; preFixup = '' @@ -136,7 +140,7 @@ in stdenv.mkDerivation rec { ''; homepage = "https://signal.org/"; changelog = "https://github.com/signalapp/Signal-Desktop/releases/tag/v${version}"; - license = lib.licenses.gpl3; + license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ ixmatus primeos equirosa ]; platforms = [ "x86_64-linux" ]; };