From 09d261ca71408893c14da39cf8299d2d9e2c678b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 26 Nov 2019 12:58:25 +0100 Subject: ripcord: add a desktop item --- user/packages/ripcord/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'user/packages') 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} ''; } -- cgit 1.4.1