2019-11-09 07:05:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, appimageTools
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "zulip";
|
2021-07-22 02:31:55 +01:00
|
|
|
version = "5.8.0";
|
2019-11-09 07:05:02 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/zulip/zulip-desktop/releases/download/v${version}/Zulip-${version}-x86_64.AppImage";
|
2021-07-22 02:31:55 +01:00
|
|
|
sha256 = "0z8lp56j6qvm57sfqdyqrqzj9add3drh1z4zsckg45jfw6yn3jdv";
|
2019-11-09 07:05:02 +00:00
|
|
|
name="${pname}-${version}.AppImage";
|
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit name src;
|
|
|
|
};
|
|
|
|
|
|
|
|
in appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
|
|
install -m 444 -D ${appimageContents}/zulip.desktop $out/share/applications/zulip.desktop
|
|
|
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/zulip.png \
|
|
|
|
$out/share/icons/hicolor/512x512/apps/zulip.png
|
|
|
|
substituteInPlace $out/share/applications/zulip.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Desktop client for Zulip Chat";
|
2020-12-02 18:34:41 +00:00
|
|
|
homepage = "https://zulip.com";
|
2019-11-09 07:05:02 +00:00
|
|
|
license = licenses.asl20;
|
2021-02-25 00:27:04 +00:00
|
|
|
maintainers = with maintainers; [ andersk jonafato ];
|
2019-11-09 07:05:02 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|