trying desktop stuff

This commit is contained in:
illuc 2026-03-15 23:58:19 +02:00
parent 6dfedac316
commit ad6d250b12

View file

@ -19,7 +19,10 @@ buildNpmPackage rec {
npmDepsHash = "sha256-XawYnHHuAS4HbsQYKhRQ0qPeZom7KB/2sw4GMFq5C9s=";
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [
makeWrapper
desktop-file-utils
];
npmFlags = [ "--ignore-scripts" ];
@ -37,6 +40,13 @@ buildNpmPackage rec {
runHook postInstall
'';
postInstall = ''
desktop-file-edit \
--set-comment "An almost stable matrix client" \
--set-key="Categories" --set-value="Network;InstantMessaging;" \
$out/share/applications/sable.desktop
'';
meta = with lib; {
description = "Electron wrapper for Sable Matrix Client";
homepage = "https://github.com/7w1/Sable-Client-Electron";