mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
callisto: use pre-compiled vesktop to avoid long updates
This commit is contained in:
parent
efaa5c81cd
commit
9079af661f
1 changed files with 41 additions and 1 deletions
|
@ -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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue