kchat: 2.4.0 -> 3.3.1

This commit is contained in:
Valentin Chassignol 2024-06-11 14:16:14 +02:00
parent f53d6a0d9e
commit 1d86418da7
No known key found for this signature in database
GPG Key ID: 3EC1FE8DF090B8CF

View File

@ -5,12 +5,12 @@
appimageTools.wrapType2 rec {
pname = "kchat";
version = "2.4.0";
version = "3.3.1";
src = fetchurl {
url = "https://download.storage5.infomaniak.com/kchat/kchat-desktop-${version}-linux-x86_64.AppImage";
name = "kchat-${version}.AppImage";
hash = "sha256-8mkkHod7iBhHVAL/vQCVnmwVlPGikdHhtiEaFVIayrU=";
hash = "sha256-f9wWgZSPSMP7bLZGfR5F6l/eAVHVhRmF1c7S6/qLgIA=";
};
extraInstallCommands =
@ -24,7 +24,8 @@ appimageTools.wrapType2 rec {
cp -r ${contents}/usr/* "$out"
cp "${contents}/kchat-desktop.desktop" "$out/share/applications/"
mv "$out/bin/kchat" "$out/bin/${meta.mainProgram}" || true
substituteInPlace $out/share/applications/kchat-desktop.desktop --replace 'Exec=AppRun' 'Exec=${meta.mainProgram}'
install -m 444 -D ${contents}/kchat-desktop.desktop $out/share/applications/kchat-desktop.desktop
substituteInPlace $out/share/applications/kchat-desktop.desktop --replace-fail 'Exec=AppRun' 'Exec=${meta.mainProgram}'
'';
meta = with lib; {