summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/psi/default.nix
blob: 784bda5e0cd43ecdda6bae9b7c5ce54500a965f3 (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
{ stdenv, fetchurl, aspell, qt4, zlib, sox, libX11, xproto, libSM
, libICE, qca2, pkgconfig, liboil, speex, callPackage, which, glib
, libXScrnSaver, scrnsaverproto
}:

stdenv.mkDerivation rec {
  name = "psi-0.15";

  src = fetchurl {
    url = "mirror://sourceforge/psi/${name}.tar.bz2";
    sha256 = "593b5ddd7934af69c245afb0e7290047fd7dedcfd8765baca5a3a024c569c7e6";
  };

  buildInputs =
    [ aspell qt4 zlib sox libX11 xproto libSM libICE
      qca2 pkgconfig which glib scrnsaverproto libXScrnSaver
    ];

  NIX_CFLAGS_COMPILE="-I${qca2}/include/QtCrypto";

  NIX_LDFLAGS="-lqca";

  psiMedia = callPackage ./psimedia.nix { };

  enableParallelBuilding = true;

  configureFlags = [
    "--with-aspell-inc=${aspell}/include"
    ];

  postInstall = ''
    PSI_PLUGINS="$out/lib/psi/plugins"
    mkdir -p "$PSI_PLUGINS"
    ln -s "${psiMedia}"/share/psi/plugins/*.so "$PSI_PLUGINS"
  '';

  meta = {
    description = "Psi, an XMPP (Jabber) client";
    maintainers = [ stdenv.lib.maintainers.raskin ];
    platforms = stdenv.lib.platforms.linux;
  };
}