2011-08-03 20:36:56 +02:00
|
|
|
{ stdenv, fetchurl, cmake, qt4, libgadu, libXScrnSaver, libsndfile, libX11,
|
2012-01-24 01:00:41 +01:00
|
|
|
alsaLib, aspell, libidn, qca2, phonon, pkgconfig }:
|
2010-09-29 00:37:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2011-12-06 20:11:15 +01:00
|
|
|
name = "kadu-0.10.1";
|
2010-09-29 00:37:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-12-06 20:11:15 +01:00
|
|
|
url = http://download.kadu.im/stable/kadu-0.10.1.tar.bz2;
|
|
|
|
sha256 = "0j88pyp2nqpc57j38zr135ypfiv4v329gfgiz9rdbqi8j26cyp7g";
|
2010-09-29 00:37:44 +02:00
|
|
|
};
|
2011-08-03 20:36:56 +02:00
|
|
|
|
2012-01-24 01:00:41 +01:00
|
|
|
buildInputs = [ cmake qt4 libgadu libXScrnSaver libsndfile libX11 alsaLib aspell libidn qca2 phonon pkgconfig
|
2010-09-29 00:37:44 +02:00
|
|
|
];
|
|
|
|
|
2011-08-03 20:36:56 +02:00
|
|
|
configureFlags = "CPPFLAGS=-DQT_NO_DEBUG";
|
|
|
|
|
|
|
|
cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
|
2010-09-29 00:37:44 +02:00
|
|
|
|
2010-10-05 07:43:59 +02:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .
|
2010-09-29 00:37:44 +02:00
|
|
|
'';
|
2011-08-03 20:36:56 +02:00
|
|
|
|
2011-09-20 00:04:03 +02:00
|
|
|
# because I was not able to get those working
|
2011-12-06 20:11:15 +01:00
|
|
|
patches = [ ./disable_some_plugins.patch ];
|
2010-09-29 00:37:44 +02:00
|
|
|
|
2011-01-28 00:49:00 +01:00
|
|
|
NIX_LDFLAGS="-lX11";
|
|
|
|
|
2011-08-03 20:36:56 +02:00
|
|
|
meta = {
|
|
|
|
description = "An instant-messenger client for the gadu-gadu network (most popular polish IM network)";
|
2010-09-29 00:37:44 +02:00
|
|
|
homepage = http://www.kadu.net/w/English:Main_Page;
|
|
|
|
license = "GPLv2";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-09-13 22:54:02 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.piotr ];
|
2010-09-29 00:37:44 +02:00
|
|
|
};
|
|
|
|
}
|