6 appimageTools.wrapType2 rec {
11 url = "https://download.storage5.infomaniak.com/kchat/kchat-desktop-${version}-linux-x86_64.AppImage";
12 name = "kchat-${version}.AppImage";
13 hash = "sha256-5Nk2IMGk7BDDL7fuoOBO3wEcbtJDDDnQvUiqa8Pt8yU=";
16 extraInstallCommands =
18 contents = appimageTools.extractType2 { inherit pname version src; };
21 mkdir -p "$out/share/applications"
22 mkdir -p "$out/share/lib/kchat"
23 cp -r ${contents}/{locales,resources} "$out/share/lib/kchat"
24 cp -r ${contents}/usr/* "$out"
25 cp "${contents}/kchat-desktop.desktop" "$out/share/applications/"
26 mv "$out/bin/kchat" "$out/bin/${meta.mainProgram}" || true
27 install -m 444 -D ${contents}/kchat-desktop.desktop $out/share/applications/kchat-desktop.desktop
28 substituteInPlace $out/share/applications/kchat-desktop.desktop --replace-fail 'Exec=AppRun' 'Exec=${meta.mainProgram}'
32 description = "Instant messaging service part of Infomaniak KSuite";
33 homepage = "https://www.infomaniak.com/en/apps/download-kchat";
34 license = licenses.unfree;
35 maintainers = [ maintainers.vinetos ];
36 mainProgram = "kchat";
37 platforms = [ "x86_64-linux" ];
38 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
40 kChat is an instant messaging service which enables you to discuss, share and coordinate your teams in complete
41 security via your Internet browser, mobile phone, tablet or computer.