7 pname = "betterdiscord-installer";
8 version = "1.0.0-beta";
11 url = "https://github.com/BetterDiscord/Installer/releases/download/v${version}/Betterdiscord-Linux.AppImage";
12 sha256 = "103acb11qmvjmf6g9lgsfm5jyahfwfdqw0x9w6lmv1hzwbs26dsr";
15 appimageContents = appimageTools.extract { inherit pname version src; };
17 appimageTools.wrapType2 {
18 inherit pname version src;
20 extraInstallCommands = ''
21 install -m 444 -D ${appimageContents}/betterdiscord.desktop -t $out/share/applications
22 substituteInPlace $out/share/applications/betterdiscord.desktop \
23 --replace 'Exec=AppRun' 'Exec=${pname}'
24 cp -r ${appimageContents}/usr/share/icons $out/share
28 description = "Installer for BetterDiscord";
29 homepage = "https://betterdiscord.app";
30 license = licenses.mit;
32 platforms = [ "x86_64-linux" ];
33 mainProgram = "betterdiscord-installer";