about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/trillian-im/default.nix
blob: 0d4a6299adfce0346431324916f09979b4477f67 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{ lib
, stdenv
, fetchurl
, autoPatchelfHook
, dpkg
, atkmm
, cairo
, cairomm
, gtk3
, gtkmm3
, libnotify
, libsecret
, pangomm
, xorg
, libpulseaudio
, librsvg
, libzip
, openssl
, webkitgtk
, libappindicator-gtk3
}:

stdenv.mkDerivation rec {
  pname = "trillian-im";
  version = "6.3.0.1";

  src = fetchurl {
    url = "https://www.trillian.im/get/linux/6.3/trillian_${version}_amd64.deb";
    sha256 = "42e3466ee236ac2644907059f0961eba3a6ed6b6156afb2c57f54ebe6065ac6f";
  };

  nativeBuildInputs = [
    autoPatchelfHook
    dpkg
  ];

  buildInputs = [
    atkmm
    cairo
    cairomm
    gtk3
    gtkmm3
    libnotify
    libsecret
    pangomm
    xorg.libXScrnSaver
    libpulseaudio
    librsvg
    libzip
    openssl
    webkitgtk
    libappindicator-gtk3
  ];

  dontUnpack = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out
    dpkg -x $src $out
    cp -av $out/usr/* $out
    rm -rf $out/usr

    rm $out/bin/trillian
    ln -s "$out/share/trillian/trillian" "$out/bin/trillian"

    runHook postInstall
  '';

  meta = with lib; {
    description = "Modern instant messaging for home and work that prioritizes chat interoperability and security";
    homepage = "https://www.trillian.im/";
    license = licenses.unfree;
    maintainers = with maintainers; [ majiir ];
    platforms = [ "x86_64-linux" ];
  };
}