summary refs log tree commit diff stats
path: root/user/packages/ripcord/default.nix
blob: 0cb0ac04d0e2638eb893b5d69a93827f35af90ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ pkgs, lib, fetchurl, makeDesktopItem, ... }:

let
  pname = "ripcord";
  version = "0.4.24";

  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}";

  src = fetchurl {
    url = "https://cancel.fm/dl/Ripcord-${version}-x86_64.AppImage";
    sha256 = "0rscmnwxvbdl0vfx1pz7x5gxs9qsjk905zmcad4f330j5l5m227z";
  };

  extraInstallCommands = ''
    mv $out/bin/{${name},${pname}}
    ${desktopItem.buildCommand}
  '';
}