@@ -1,10 +1,11 @@
1−{ stdenv, fetchurl, dpkg
1+{ stdenv, fetchurl, dpkg, makeWrapper
22, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, glib
3−, gnome2, libnotify, libxcb, nspr, nss, systemd, xorg }:
3+, gnome3, gtk3, gdk_pixbuf, libnotify, libxcb, nspr, nss, pango
4+, systemd, wget, xorg }:
45
56let
67
7− version = "3.1.0";
8+ version = "3.2.0-beta25a7a50e";
89
910 rpath = stdenv.lib.makeLibraryPath [
1011 alsaLib
@@ -17,10 +18,10 @@ let
1718 fontconfig
1819 freetype
1920 glib
20− gnome2.GConf
21− gnome2.gdk_pixbuf
22− gnome2.gtk
23− gnome2.pango
21+ gnome3.gconf
22+ gdk_pixbuf
23+ gtk3
24+ pango
2425 libnotify
2526 libxcb
2627 nspr
@@ -46,7 +47,7 @@ let
4647 if stdenv.system == "x86_64-linux" then
4748 fetchurl {
4849 url = "https://downloads.slack-edge.com/linux_releases/slack-desktop-${version}-amd64.deb";
49− sha256 = "1y8xxfpqvz4q6y1zkna4cp3rqi7p03w5xgr8h1cmym8z66bj7dq3";
50+ sha256 = "0497794a7f0e5ac00a9421e6b1875dcc576ed93efc4a7d8c6465db641c234064";
5051 }
5152 else
5253 throw "Slack is not supported on ${stdenv.system}";
@@ -56,7 +57,13 @@ in stdenv.mkDerivation {
5657
5758 inherit src;
5859
59− buildInputs = [ dpkg ];
60+ buildInputs = [
61+ dpkg
62+ gtk3 # needed for GSETTINGS_SCHEMAS_PATH
63+ ];
64+
65+ nativeBuildInputs = [ makeWrapper ];
66+
6067 unpackPhase = "true";
6168 buildCommand = ''
6269 mkdir -p $out
@@ -72,9 +79,10 @@ in stdenv.mkDerivation {
7279 patchelf --set-rpath ${rpath}:$out/lib/slack $file || true
7380 done
7481
75− # Fix the symlink
82+ # Replace the broken bin/slack symlink with a startup wrapper
7683 rm $out/bin/slack
77− ln -s $out/lib/slack/slack $out/bin/slack
84+ makeWrapper $out/lib/slack/slack $out/bin/slack \
85+ --prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH
7886
7987 # Fix the desktop link
8088 substituteInPlace $out/share/applications/slack.desktop \