2020-03-12 09:36:17 +00:00
|
|
|
{ lib, fetchurl, appimageTools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "deltachat-electron";
|
2020-05-28 05:49:59 +01:00
|
|
|
version = "1.3.0";
|
2020-03-12 09:36:17 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2020-04-13 20:33:42 +01:00
|
|
|
"https://download.delta.chat/desktop/v${version}/DeltaChat-${version}.AppImage";
|
2020-06-01 09:59:41 +01:00
|
|
|
sha256 = "1xyp8cg11px8rras12sncjmq85alyvz7ycw1v1py8w8rlz60wkij";
|
2020-03-12 09:36:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract { inherit name src; };
|
|
|
|
|
|
|
|
in appimageTools.wrapType2 {
|
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/${name} $out/bin/${pname}
|
|
|
|
install -m 444 -D \
|
|
|
|
${appimageContents}/deltachat-desktop.desktop \
|
|
|
|
$out/share/applications/${pname}.desktop
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Electron client for DeltaChat";
|
|
|
|
homepage = "https://delta.chat/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|