all repos — nixfiles @ 09d261ca71408893c14da39cf8299d2d9e2c678b

System and user configuration, managed by nix and home-manager

ripcord: add a desktop item
Alan Pearce alan@alanpearce.eu
Tue, 26 Nov 2019 12:58:25 +0100
commit

09d261ca71408893c14da39cf8299d2d9e2c678b

parent

b3fb3c581c5914db69a764388705070c4886b6fd

1 files changed, 11 insertions(+), 1 deletions(-)

jump to
M user/packages/ripcord/default.nixuser/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 @@ }; 
   extraInstallCommands = ''
     mv $out/bin/{${name},${pname}}
+    ${desktopItem.buildCommand}
   '';
 }