diff --git a/default.nix b/default.nix index 7e45cde..4df545f 100644 --- a/default.nix +++ b/default.nix @@ -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";