2011-08-03 19:36:56 +01:00
|
|
|
{ stdenv, fetchurl, cmake, qt4, libgadu, libXScrnSaver, libsndfile, libX11,
|
2012-01-24 00:00:41 +00:00
|
|
|
alsaLib, aspell, libidn, qca2, phonon, pkgconfig }:
|
2010-09-28 23:37:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2012-12-17 19:38:21 +00:00
|
|
|
name = "kadu-0.12.2";
|
2010-09-28 23:37:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-12-17 19:38:21 +00:00
|
|
|
url = http://download.kadu.im/stable/kadu-0.12.2.tar.bz2;
|
|
|
|
sha256 = "0rqhkiyn8c7jigpxmvwh7daxsgjxlvd16zjdss1azdzd9x2dbym1";
|
2010-09-28 23:37:44 +01:00
|
|
|
};
|
2011-08-03 19:36:56 +01:00
|
|
|
|
2012-01-24 00:00:41 +00:00
|
|
|
buildInputs = [ cmake qt4 libgadu libXScrnSaver libsndfile libX11 alsaLib aspell libidn qca2 phonon pkgconfig
|
2010-09-28 23:37:44 +01:00
|
|
|
];
|
|
|
|
|
2011-08-03 19:36:56 +01:00
|
|
|
configureFlags = "CPPFLAGS=-DQT_NO_DEBUG";
|
|
|
|
|
|
|
|
cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
|
2010-09-28 23:37:44 +01:00
|
|
|
|
2010-10-05 06:43:59 +01:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .
|
2010-09-28 23:37:44 +01:00
|
|
|
'';
|
2011-08-03 19:36:56 +01:00
|
|
|
|
2012-12-17 19:38:21 +00:00
|
|
|
# Disable the kadu plugins I wasn't able to get to work
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e '/mpd_mediaplayer/d' \
|
|
|
|
-e '/encryption_ng/d' \
|
|
|
|
-e '/encryption_ng_simlite/d' Plugins.cmake
|
2014-02-15 09:24:22 +00:00
|
|
|
patch -p1 < ${./cmake.patch}
|
2012-12-17 19:38:21 +00:00
|
|
|
'';
|
2010-09-28 23:37:44 +01:00
|
|
|
|
2011-01-27 23:49:00 +00:00
|
|
|
NIX_LDFLAGS="-lX11";
|
|
|
|
|
2011-08-03 19:36:56 +01:00
|
|
|
meta = {
|
|
|
|
description = "An instant-messenger client for the gadu-gadu network (most popular polish IM network)";
|
2010-09-28 23:37:44 +01:00
|
|
|
homepage = http://www.kadu.net/w/English:Main_Page;
|
|
|
|
license = "GPLv2";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-09-13 21:54:02 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.piotr ];
|
2010-09-28 23:37:44 +01:00
|
|
|
};
|
|
|
|
}
|