@@ -0,0 +1,47 @@
1+{ stdenv, fetchFromGitHub, cmake
2+, qt5, libidn, qca2-qt5, libXScrnSaver, hunspell
3+, libgcrypt, libotr, html-tidy, libgpgerror
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "psi-plus-${version}";
8+ version = "0.16.575.639";
9+
10+ src = fetchFromGitHub {
11+ owner = "psi-plus";
12+ repo = "psi-plus-snapshots";
13+ rev = "${version}";
14+ sha256 = "0mn24y3y4qybw81rjy0hr46y7y96dvwdl6kk61kizwj32z1in8cg";
15+ };
16+
17+ resources = fetchFromGitHub {
18+ owner = "psi-plus";
19+ repo = "resources";
20+ rev = "8f5038380e1be884b04b5a1ad3cc3385e793f668";
21+ sha256 = "1b8a2aixg966fzjwp9hz51rc31imyvpx014mp2fsm47k8na4470d";
22+ };
23+
24+ postUnpack = ''
25+ cp -a "${resources}/iconsets" "$sourceRoot"
26+ '';
27+
28+ cmakeFlags = [
29+ "-DENABLE_PLUGINS=ON"
30+ ];
31+
32+ nativeBuildInputs = [ cmake ];
33+
34+ buildInputs = [
35+ qt5.qtbase qt5.qtmultimedia qt5.qtx11extras qt5.qttools qt5.qtwebkit
36+ libidn qca2-qt5 libXScrnSaver hunspell
37+ libgcrypt libotr html-tidy libgpgerror
38+ ];
39+
40+ enableParallelBuilding = true;
41+
42+ meta = with stdenv.lib; {
43+ description = "XMPP (Jabber) client";
44+ maintainers = with maintainers; [ orivej ];
45+ platforms = platforms.linux;
46+ };
47+}