summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/packages/ripcord/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/user/packages/ripcord/default.nix b/user/packages/ripcord/default.nix
index f4874119..02f1cf0e 100644
--- a/user/packages/ripcord/default.nix
+++ b/user/packages/ripcord/default.nix
@@ -1,8 +1,17 @@
-{ pkgs, lib, fetchurl, ... }:
+{ pkgs, lib, fetchurl, makeDesktopItem, ... }:
 
 let
   pname = "ripcord";
   version = "0.4.21";
+
+  desktopItem = makeDesktopItem {
+    name = "Ripcord";
+    exec = "ripcord";
+    comment = "Desktop chat client for Slack (and Discord)";
+    desktopName = "Ripcord";
+    categories = "Network;InstantMessaging;Chat";
+    genericName = "Team messenger";
+  };
 in
 pkgs.appimageTools.wrapType2 rec {
   name = "${pname}-${version}";
@@ -14,5 +23,6 @@ pkgs.appimageTools.wrapType2 rec {
 
   extraInstallCommands = ''
     mv $out/bin/{${name},${pname}}
+    ${desktopItem.buildCommand}
   '';
 }