ripcord: add a desktop item
Alan Pearce alan@alanpearce.eu
Tue, 26 Nov 2019 12:58:25 +0100
1 files changed, 11 insertions(+), 1 deletions(-)
M user/packages/ripcord/default.nix → 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 @@ }; extraInstallCommands = '' mv $out/bin/{${name},${pname}} + ${desktopItem.buildCommand} ''; }