blob: 7ea5d6a4e72d77aac125dfcffee21ff557c8cf55 (
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
|
{ mkDerivation
, lib
, fetchFromGitHub
, cmake
, pkg-config
, withGstreamer ? true
, gst_all_1
, withOmemo ? true
, qca-qt5
, libomemo-c
}:
mkDerivation rec {
pname = "qxmpp";
version = "1.7.0";
src = fetchFromGitHub {
owner = "qxmpp-project";
repo = pname;
rev = "v${version}";
sha256 = "sha256-8AF+deDRxipN+YMHE9vUyTaUbSJIckMkB7t3YVtupQs=";
};
nativeBuildInputs = [
cmake
] ++ lib.optionals (withGstreamer || withOmemo) [
pkg-config
];
buildInputs = lib.optionals withGstreamer (with gst_all_1; [
gstreamer
gst-plugins-bad
gst-plugins-base
gst-plugins-good
]) ++ lib.optionals withOmemo [
qca-qt5
libomemo-c
];
cmakeFlags = [
"-DBUILD_EXAMPLES=false"
"-DBUILD_TESTS=false"
] ++ lib.optionals withGstreamer [
"-DWITH_GSTREAMER=ON"
] ++ lib.optionals withOmemo [
"-DBUILD_OMEMO=ON"
];
meta = with lib; {
description = "Cross-platform C++ XMPP client and server library";
homepage = "https://github.com/qxmpp-project/qxmpp";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ astro ];
platforms = with platforms; linux;
};
}
|