summary refs log tree commit diff stats
path: root/user/packages/ripcord
diff options
context:
space:
mode:
authorAlan Pearce2019-11-26 12:58:25 +0100
committerAlan Pearce2019-11-26 12:58:25 +0100
commit09d261ca71408893c14da39cf8299d2d9e2c678b (patch)
treeb674efbc46cc1a874d2a07d6b7d5d71de46136aa /user/packages/ripcord
parentb3fb3c581c5914db69a764388705070c4886b6fd (diff)
downloadnixfiles-09d261ca71408893c14da39cf8299d2d9e2c678b.tar.lz
nixfiles-09d261ca71408893c14da39cf8299d2d9e2c678b.tar.zst
nixfiles-09d261ca71408893c14da39cf8299d2d9e2c678b.zip
ripcord: add a desktop item
Diffstat (limited to 'user/packages/ripcord')
-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}
   '';
 }