From e01209f2c7b06fc896ba2af90f83be8b078027cc Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Tue, 27 Nov 2018 20:03:36 +0100 Subject: [PATCH] signal-desktop: 1.18.1 -> 1.19.0 A new dependency (at-spi2-atk) is required for libatk-bridge-2.0.so. Also libstdc++.so.6 is now required from stdenv.cc.cc.lib (stdenv.cc.cc doesn't offer it). The binary will only find libstdc++.so.6 via $LD_LIBRARY_PATH (i.e. not via rpath, the run-time search path). --- .../instant-messengers/signal-desktop/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix index 2f7f3c5836af..9dd9a0d33345 100644 --- a/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/signal-desktop/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchurl, dpkg, wrapGAppsHook -, gnome2, gtk3, atk, cairo, pango, gdk_pixbuf, glib, freetype, fontconfig +, gnome2, gtk3, atk, at-spi2-atk, cairo, pango, gdk_pixbuf, glib, freetype, fontconfig , dbus, libX11, xorg, libXi, libXcursor, libXdamage, libXrandr, libXcomposite , libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss, nspr, alsaLib , cups, expat, udev, libnotify @@ -24,6 +24,7 @@ let rpath = lib.makeLibraryPath [ alsaLib atk + at-spi2-atk cairo cups dbus @@ -49,18 +50,17 @@ let libXtst nspr nss - stdenv.cc.cc udev xorg.libxcb ]; in stdenv.mkDerivation rec { name = "signal-desktop-${version}"; - version = "1.18.1"; + version = "1.19.0"; src = fetchurl { url = "https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop/signal-desktop_${version}_amd64.deb"; - sha256 = "1gak6nhv5gk37iv1bfmjx6wf0p1vcln5y29i6fkzmvcrp3j2cmfh"; + sha256 = "19a585mylbwrxd2m75hgp77ys1r350xkvawq2ysp0cxzr04l46z7"; }; phases = [ "unpackPhase" "installPhase" ]; @@ -84,6 +84,7 @@ in stdenv.mkDerivation rec { --set-rpath ${rpath}:$out/libexec $out/libexec/signal-desktop wrapProgram $out/libexec/signal-desktop \ --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ + --prefix LD_LIBRARY_PATH : "${stdenv.cc.cc.lib}/lib" \ ${customLanguageWrapperArgs} \ "''${gappsWrapperArgs[@]}"