2012-10-15 16:21:13 +02:00
|
|
|
{ stdenv, fetchurl, aspell, qt4, zlib, sox, libX11, xproto, libSM
|
2015-03-31 01:50:47 +02:00
|
|
|
, libICE, qca2, pkgconfig, liboil, speex, callPackage, which, glib
|
2012-10-17 20:59:41 +02:00
|
|
|
, libXScrnSaver, scrnsaverproto
|
|
|
|
}:
|
2009-11-18 10:39:59 +01:00
|
|
|
|
2009-06-03 20:23:49 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2012-10-17 20:59:41 +02:00
|
|
|
name = "psi-0.15";
|
2012-10-15 16:21:13 +02:00
|
|
|
|
2009-06-03 20:23:49 +02:00
|
|
|
src = fetchurl {
|
2009-11-18 10:39:59 +01:00
|
|
|
url = "mirror://sourceforge/psi/${name}.tar.bz2";
|
2012-10-17 20:59:41 +02:00
|
|
|
sha256 = "593b5ddd7934af69c245afb0e7290047fd7dedcfd8765baca5a3a024c569c7e6";
|
2009-06-03 20:23:49 +02:00
|
|
|
};
|
|
|
|
|
2012-10-15 16:21:13 +02:00
|
|
|
buildInputs =
|
|
|
|
[ aspell qt4 zlib sox libX11 xproto libSM libICE
|
2015-03-31 01:50:47 +02:00
|
|
|
qca2 pkgconfig which glib scrnsaverproto libXScrnSaver
|
2012-10-15 16:21:13 +02:00
|
|
|
];
|
2009-06-03 20:23:49 +02:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE="-I${qca2}/include/QtCrypto";
|
2012-10-15 16:21:13 +02:00
|
|
|
|
2009-06-03 20:39:32 +02:00
|
|
|
NIX_LDFLAGS="-lqca";
|
2009-06-03 20:23:49 +02:00
|
|
|
|
2012-03-14 23:44:52 +01:00
|
|
|
psiMedia = callPackage ./psimedia.nix { };
|
2010-06-09 14:56:15 +02:00
|
|
|
|
2012-10-15 16:21:13 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-10-17 20:59:41 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-aspell-inc=${aspell}/include"
|
|
|
|
];
|
|
|
|
|
2010-06-09 14:56:15 +02:00
|
|
|
postInstall = ''
|
|
|
|
PSI_PLUGINS="$out/lib/psi/plugins"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$PSI_PLUGINS"
|
2010-06-09 14:56:15 +02:00
|
|
|
ln -s "${psiMedia}"/share/psi/plugins/*.so "$PSI_PLUGINS"
|
|
|
|
'';
|
|
|
|
|
2009-06-03 20:23:49 +02:00
|
|
|
meta = {
|
|
|
|
description = "Psi, an XMPP (Jabber) client";
|
2012-10-15 16:21:13 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-06-03 20:23:49 +02:00
|
|
|
};
|
|
|
|
}
|