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 {
|
|
|
|
|
2014-11-03 12:15:57 +01:00
|
|
|
name = "kadu-0.12.3";
|
2010-09-29 00:37:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-03 12:15:57 +01:00
|
|
|
url = http://download.kadu.im/stable/kadu-0.12.3.tar.bz2;
|
|
|
|
sha256 = "1a5q5b8pm253cwg6ahahjdm8jxj0pv41apyi1nvvy08bs38bn1yn";
|
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";
|
|
|
|
|
2014-08-12 14:07:28 +02:00
|
|
|
preConfigure = ''
|
|
|
|
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${phonon}/lib64/pkgconfig:${phonon}/lib32/pkgconfig"
|
|
|
|
'';
|
|
|
|
|
2011-08-03 20:36:56 +02:00
|
|
|
cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
|
2010-09-29 00:37:44 +02:00
|
|
|
|
2012-12-17 20:38:21 +01: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 10:24:22 +01:00
|
|
|
patch -p1 < ${./cmake.patch}
|
2012-12-17 20:38:21 +01:00
|
|
|
'';
|
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;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-09-29 00:37:44 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|