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