slack: 4.4.3 -> 4.7.0 (linux), 4.6.0 -> 4.8.0 (darwin)
This commit is contained in:
parent
c31de496b5
commit
60be9548a4
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, dpkg
|
, dpkg
|
||||||
|
, undmg
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, nodePackages
|
, nodePackages
|
||||||
, alsaLib
|
, alsaLib
|
||||||
|
@ -19,10 +20,12 @@
|
||||||
, gnome2
|
, gnome2
|
||||||
, gtk3
|
, gtk3
|
||||||
, libappindicator-gtk3
|
, libappindicator-gtk3
|
||||||
|
, libdrm
|
||||||
, libnotify
|
, libnotify
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, libuuid
|
, libuuid
|
||||||
, libxcb
|
, libxcb
|
||||||
|
, mesa
|
||||||
, nspr
|
, nspr
|
||||||
, nss
|
, nss
|
||||||
, pango
|
, pango
|
||||||
|
@ -32,21 +35,26 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
pname = "slack";
|
|
||||||
|
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (stdenv.hostPlatform) system;
|
||||||
|
|
||||||
throwSystem = throw "Unsupported system: ${system}";
|
throwSystem = throw "Unsupported system: ${system}";
|
||||||
|
|
||||||
sha256 = {
|
pname = "slack";
|
||||||
x86_64-darwin = "09daxnqxyccshkrmr7ysgjvgvgmlgd590ym68fz0l8n6ayfpkgw0";
|
version = {
|
||||||
x86_64-linux = "00ihhsgxm441nsmav7pq4n4y9s7p2r4x5dqld160658xyqi836cq";
|
x86_64-darwin = "4.8.0";
|
||||||
|
x86_64-linux = "4.7.0";
|
||||||
}.${system} or throwSystem;
|
}.${system} or throwSystem;
|
||||||
|
|
||||||
version = {
|
src = let
|
||||||
x86_64-darwin = "4.6.0";
|
base = "https://downloads.slack-edge.com";
|
||||||
x86_64-linux = "4.4.3";
|
in {
|
||||||
|
x86_64-darwin = fetchurl {
|
||||||
|
url = "${base}/releases/macos/${version}/prod/x64/Slack-${version}-macOS.dmg";
|
||||||
|
sha256 = "0k22w3c3brbc7ivmc5npqy8h7zxfgnbs7bqwii03psymm6sw53j2";
|
||||||
|
};
|
||||||
|
x86_64-linux = fetchurl {
|
||||||
|
url = "${base}/linux_releases/slack-desktop-${version}-amd64.deb";
|
||||||
|
sha256 = "1nwyl70caaz9k0hccfpkjli0jjc6m9zbjb3nf4bwmykpbxbzr9w3";
|
||||||
|
};
|
||||||
}.${system} or throwSystem;
|
}.${system} or throwSystem;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -58,11 +66,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
linux = stdenv.mkDerivation rec {
|
linux = stdenv.mkDerivation rec {
|
||||||
inherit pname meta version;
|
inherit pname version src meta;
|
||||||
src = fetchurl {
|
|
||||||
url = "https://downloads.slack-edge.com/linux_releases/slack-desktop-${version}-amd64.deb";
|
|
||||||
inherit sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
rpath = stdenv.lib.makeLibraryPath [
|
rpath = stdenv.lib.makeLibraryPath [
|
||||||
alsaLib
|
alsaLib
|
||||||
|
@ -81,10 +85,12 @@ let
|
||||||
gnome2.GConf
|
gnome2.GConf
|
||||||
gtk3
|
gtk3
|
||||||
libappindicator-gtk3
|
libappindicator-gtk3
|
||||||
|
libdrm
|
||||||
libnotify
|
libnotify
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
libuuid
|
libuuid
|
||||||
libxcb
|
libxcb
|
||||||
|
mesa
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
pango
|
pango
|
||||||
|
@ -143,21 +149,16 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
darwin = stdenv.mkDerivation rec {
|
darwin = stdenv.mkDerivation {
|
||||||
inherit pname meta version;
|
inherit pname version src meta;
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
nativeBuildInputs = [ undmg ];
|
||||||
|
|
||||||
src = fetchurl {
|
sourceRoot = "Slack.app";
|
||||||
url = "https://downloads.slack-edge.com/mac_releases/Slack-${version}-macOS.dmg";
|
|
||||||
inherit sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
/usr/bin/hdiutil mount -nobrowse -mountpoint slack-mnt $src
|
mkdir -p $out/Applications/Slack.app
|
||||||
mkdir -p $out/Applications
|
cp -R . $out/Applications/Slack.app
|
||||||
cp -r ./slack-mnt/Slack.app $out/Applications
|
|
||||||
/usr/bin/hdiutil unmount slack-mnt
|
|
||||||
/usr/bin/defaults write com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES
|
/usr/bin/defaults write com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue