about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/kaidan/default.nix
blob: b710421adb4aa4ceedc7a22fddfc30583e6eb543 (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
79
80
{ mkDerivation
, lib
, fetchFromGitLab
, cmake
, extra-cmake-modules
, pkg-config
, qtquickcontrols2
, qtmultimedia
, qtlocation
, qqc2-desktop-style
, kirigami-addons
, kirigami2
, kio
, knotifications
, kquickimageedit
, zxing-cpp
, qxmpp
, sonnet
, gst_all_1
}:

mkDerivation rec {
  pname = "kaidan";
  version = "0.9.1";

  src = fetchFromGitLab {
    domain = "invent.kde.org";
    owner = "network";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-F5GhN9hAF2e8b0T3peUnLk8CVd+nq4YR8k52x6ZOoLM=";
  };

  nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ];

  buildInputs = with gst_all_1; [
    qtquickcontrols2
    qtmultimedia
    qtlocation
    qqc2-desktop-style
    kirigami-addons
    kirigami2
    kio
    knotifications
    kquickimageedit
    zxing-cpp
    qxmpp
    sonnet
    gstreamer
    gst-plugins-bad
    gst-plugins-base
    gst-plugins-good
  ];
  postInstall = ''
    qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
  '';

  meta = with lib; {
    description = "User-friendly and modern chat app, using XMPP";
    mainProgram = "kaidan";
    longDescription = ''
       Kaidan is a user-friendly and modern chat app for every device. It uses
       the open communication protocol XMPP (Jabber). Unlike other chat apps,
       you are not dependent on one specific service provider.

       Kaidan does not have all basic features yet and has still some
       stability issues. Current features include audio messages, video
       messages, and file sharing.
    '';
    homepage = "https://www.kaidan.im";
    license = with licenses; [
      gpl3Plus
      mit
      asl20
      cc-by-sa-40
    ];
    maintainers = with maintainers; [ astro ];
    platforms = with platforms; linux;
  };
}