2010-06-09 14:56:15 +02:00
|
|
|
{ stdenv, fetchurl, aspell, qt4, zlib, sox, libX11, xproto, libSM,
|
2012-01-24 01:00:34 +01:00
|
|
|
libICE, qca2, pkgconfig, qca2_ossl, liboil, speex, gst_all, which, glib }:
|
2009-11-18 10:39:59 +01:00
|
|
|
|
2009-06-03 20:23:49 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-02-22 10:53:17 +01:00
|
|
|
name = "psi-0.14";
|
2009-11-18 10:39:59 +01: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";
|
2010-02-22 10:53:17 +01:00
|
|
|
sha256 = "1h54a1qryfva187sw9qnb4lv1d3h3lysqgw55v727swvslh4l0da";
|
2009-06-03 20:23:49 +02:00
|
|
|
};
|
|
|
|
|
2010-06-09 14:56:15 +02:00
|
|
|
buildInputs = [aspell qt4 zlib sox libX11 xproto libSM libICE
|
2012-01-24 01:00:34 +01:00
|
|
|
qca2 qca2_ossl pkgconfig which glib];
|
2009-06-03 20:23:49 +02:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE="-I${qca2}/include/QtCrypto";
|
2009-11-18 10:39:59 +01:00
|
|
|
|
2009-06-03 20:39:32 +02:00
|
|
|
NIX_LDFLAGS="-lqca";
|
2009-06-03 20:23:49 +02:00
|
|
|
|
2009-11-18 10:39:59 +01:00
|
|
|
configureFlags =
|
|
|
|
[ " --with-zlib-inc=${zlib}/include "
|
|
|
|
" --disable-bundled-qca"
|
|
|
|
];
|
2009-06-03 20:23:49 +02:00
|
|
|
|
2010-06-09 14:56:15 +02:00
|
|
|
psiMedia = (import ./psimedia.nix) {
|
2012-01-24 01:00:34 +01:00
|
|
|
inherit stdenv fetchurl qt4 speex gst_all liboil which glib pkgconfig;
|
2010-06-09 14:56:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
PSI_PLUGINS="$out/lib/psi/plugins"
|
|
|
|
ensureDir "$PSI_PLUGINS"
|
|
|
|
ln -s "${psiMedia}"/share/psi/plugins/*.so "$PSI_PLUGINS"
|
|
|
|
PSI_QT_PLUGINS="$out/share/psi"
|
|
|
|
ensureDir "$PSI_QT_PLUGINS"/crypto
|
|
|
|
ln -s "${qca2_ossl}"/lib/qt4/plugins/crypto/*.so "$PSI_QT_PLUGINS"/crypto
|
|
|
|
'';
|
|
|
|
|
2009-06-03 20:23:49 +02:00
|
|
|
meta = {
|
|
|
|
description = "Psi, an XMPP (Jabber) client";
|
2010-06-09 14:56:15 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers;
|
|
|
|
[raskin];
|
|
|
|
platforms = with stdenv.lib.platforms;
|
|
|
|
linux;
|
2009-06-03 20:23:49 +02:00
|
|
|
};
|
|
|
|
}
|