1{
2 lib,
3 mkDerivation,
4 fetchFromGitHub,
5 cmake,
6 qtbase,
7 qtmultimedia,
8 qtx11extras,
9 qttools,
10 qtwebengine,
11 libidn,
12 qca-qt5,
13 libXScrnSaver,
14 hunspell,
15}:
16
17mkDerivation rec {
18 pname = "psi";
19 version = "1.5";
20 src = fetchFromGitHub {
21 owner = "psi-im";
22 repo = pname;
23 rev = version;
24 sha256 = "hXDZODHl14kimRlMQ1XjISQ2kk9NS78axVN3U21wkuM=";
25 fetchSubmodules = true;
26 };
27 patches = [
28 ./fix-cmake-hunspell-1.7.patch
29 ];
30 nativeBuildInputs = [
31 cmake
32 qttools
33 ];
34 buildInputs = [
35 qtbase
36 qtmultimedia
37 qtx11extras
38 qtwebengine
39 libidn
40 qca-qt5
41 libXScrnSaver
42 hunspell
43 ];
44
45 meta = with lib; {
46 homepage = "https://psi-im.org";
47 description = "XMPP (Jabber) client";
48 mainProgram = "psi";
49 maintainers = [ maintainers.raskin ];
50 license = licenses.gpl2;
51 platforms = platforms.linux;
52 };
53}