Skip to content

Commit

Permalink
Merge pull request #119324 from primeos/signal-desktop-backport
Browse files Browse the repository at this point in the history
[20.09] signal-desktop: 1.40.1 -> 5.0.0
  • Loading branch information
primeos committed Apr 13, 2021
2 parents cce26cd + e2249a6 commit 9106cc1
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -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:
Expand All @@ -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 = [
Expand Down Expand Up @@ -96,6 +96,8 @@ in stdenv.mkDerivation rec {
dontAutoPatchelf = true;

installPhase = ''
runHook preInstall
mkdir -p $out/lib
mv usr/share $out/share
Expand All @@ -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 = ''
Expand Down Expand Up @@ -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" ];
};
Expand Down

0 comments on commit 9106cc1

Please sign in to comment.