deltachat-electron: init 1.1.0

This commit is contained in:
Emery Hemingway 2020-03-12 15:06:17 +05:30
parent 1b5ef3f4b1
commit 641e102974
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ lib, fetchurl, appimageTools }:
let
pname = "deltachat-electron";
version = "1.1.0";
name = "${pname}-${version}";
src = fetchurl {
url =
"https://download.delta.chat/desktop/r${version}/DeltaChat-${version}.AppImage";
sha256 = "0pbn45cyv0h3fp7s9v9q93v12ah2gj7daaq0r3z140im6zv0rkrc";
};
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" ];
};
}

View file

@ -867,6 +867,9 @@ in
cue = callPackage ../development/tools/cue { };
deltachat-electron = callPackage
../applications/networking/instant-messengers/deltachat-electron { };
deskew = callPackage ../applications/graphics/deskew { };
detect-secrets = python3Packages.callPackage ../development/tools/detect-secrets { };