callisto: use pre-compiled vesktop to avoid long updates

This commit is contained in:
Youwen Wu 2024-08-25 05:19:43 -07:00
parent efaa5c81cd
commit 9079af661f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -50,7 +50,47 @@
./0001-linux-dmabuf-allow-on-split-node-systems.patch ./0001-linux-dmabuf-allow-on-split-node-systems.patch
]; ];
}); });
vesktop = stablepkgs.vesktop;
vesktop = with pkgs; let
pname = "vesktop";
version = "1.5.3";
src = fetchurl {
url = "https://github.com/Vencord/Vesktop/releases/download/v${version}/${pname}-${version}-arm64.AppImage";
hash = "sha256-4F1oR2nc54EZ2heGVkz4vqZzmwn0exa2+AcYHpeTb98=";
};
appimageContents = appimageTools.extract {
inherit pname version src;
};
desktopItem = makeDesktopItem {
name = pname;
desktopName = "Vesktop";
exec = "vesktop %U --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations --enable-wayland-ime";
icon = "vesktop";
startupWMClass = "Vesktop";
genericName = "Internet Messenger";
keywords = [
"discord"
];
categories = [
"Network"
"InstantMessaging"
"Chat"
];
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mkdir -p $out/share
cp -rt $out/share ${desktopItem}/share/applications ${appimageContents}/usr/share/icons
chmod -R +w $out/share
mv $out/share/icons/hicolor/{16x16,256x256}
'';
};
}) })
]; ];