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 {
|
|
|
|
|
2014-11-03 11:15:57 +00:00
|
|
|
name = "kadu-0.12.3";
|
2010-09-28 23:37:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-03 11:15:57 +00:00
|
|
|
url = http://download.kadu.im/stable/kadu-0.12.3.tar.bz2;
|
|
|
|
sha256 = "1a5q5b8pm253cwg6ahahjdm8jxj0pv41apyi1nvvy08bs38bn1yn";
|
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";
|
|
|
|
|
2014-08-12 13:07:28 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${phonon}/lib64/pkgconfig:${phonon}/lib32/pkgconfig"
|
|
|
|
'';
|
|
|
|
|
2011-08-03 19:36:56 +01:00
|
|
|
cmakeFlags = "-DENABLE_AUTODOWNLOAD=OFF -DBUILD_DESCRIPTION='NixOS' -DCMAKE_BUILD_TYPE=Release";
|
2010-09-28 23:37:44 +01:00
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
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;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-09-28 23:37:44 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|