mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
b377586b7a
hydra.nixos.org/build/3154247
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ stdenv, fetchurl, aspell, qt4, zlib, sox, libX11, xproto, libSM
|
|
, libICE, qca2, pkgconfig, qca2_ossl, liboil, speex, callPackage, which, glib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "psi-0.14";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/psi/${name}.tar.bz2";
|
|
sha256 = "1h54a1qryfva187sw9qnb4lv1d3h3lysqgw55v727swvslh4l0da";
|
|
};
|
|
|
|
buildInputs =
|
|
[ aspell qt4 zlib sox libX11 xproto libSM libICE
|
|
qca2 qca2_ossl pkgconfig which glib
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE="-I${qca2}/include/QtCrypto";
|
|
|
|
NIX_LDFLAGS="-lqca";
|
|
|
|
configureFlags =
|
|
[ " --with-zlib-inc=${zlib}/include "
|
|
" --disable-bundled-qca"
|
|
];
|
|
|
|
psiMedia = callPackage ./psimedia.nix { };
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
PSI_PLUGINS="$out/lib/psi/plugins"
|
|
mkdir -p "$PSI_PLUGINS"
|
|
ln -s "${psiMedia}"/share/psi/plugins/*.so "$PSI_PLUGINS"
|
|
PSI_QT_PLUGINS="$out/share/psi"
|
|
mkdir -p "$PSI_QT_PLUGINS"/crypto
|
|
ln -s "${qca2_ossl}"/lib/qt4/plugins/crypto/*.so "$PSI_QT_PLUGINS"/crypto
|
|
'';
|
|
|
|
meta = {
|
|
description = "Psi, an XMPP (Jabber) client";
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|