2014-10-30 09:10:27 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, gtkspell, aspell
|
|
|
|
, gstreamer, gst_plugins_base, startupnotification, gettext
|
|
|
|
, perl, perlXMLParser, libxml2, nss, nspr, farsight2
|
|
|
|
, libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn
|
|
|
|
, lib, python, libICE, libXext, libSM
|
|
|
|
, openssl ? null
|
|
|
|
, gnutls ? null
|
|
|
|
, libgcrypt ? null
|
|
|
|
}:
|
2007-05-13 14:22:24 +00:00
|
|
|
|
2014-10-23 10:53:41 +00:00
|
|
|
# FIXME: clean the mess around choosing the SSL library (nss by default)
|
|
|
|
|
2012-03-17 17:12:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-30 09:10:27 +00:00
|
|
|
name = "pidgin-${version}";
|
2014-11-16 19:42:19 +00:00
|
|
|
majorVersion = "2";
|
|
|
|
version = "${majorVersion}.10.10";
|
2014-10-30 09:10:27 +00:00
|
|
|
|
2007-05-13 14:22:24 +00:00
|
|
|
src = fetchurl {
|
2012-03-17 17:12:48 +00:00
|
|
|
url = "mirror://sourceforge/pidgin/${name}.tar.bz2";
|
2014-10-23 10:53:41 +00:00
|
|
|
sha256 = "0bc2bk2g3w90mpz9sn9j95c71z4i2i3wxaqa2zpmmixf5r8rasyw";
|
2007-05-13 14:22:24 +00:00
|
|
|
};
|
|
|
|
|
2007-06-28 09:53:12 +00:00
|
|
|
inherit nss ncurses;
|
2014-10-30 09:10:27 +00:00
|
|
|
|
2007-05-13 14:22:24 +00:00
|
|
|
buildInputs = [
|
2007-08-16 23:14:52 +00:00
|
|
|
gtkspell aspell
|
2012-03-14 22:44:52 +00:00
|
|
|
gstreamer gst_plugins_base startupnotification
|
2014-10-30 09:10:27 +00:00
|
|
|
libxml2 nss nspr farsight2
|
2010-01-11 13:25:05 +00:00
|
|
|
libXScrnSaver ncurses python
|
2009-12-23 21:05:29 +00:00
|
|
|
avahi dbus dbus_glib intltool libidn
|
2014-10-30 09:10:27 +00:00
|
|
|
libICE libXext libSM
|
2008-09-06 10:30:55 +00:00
|
|
|
]
|
2014-10-30 09:10:27 +00:00
|
|
|
++ (lib.optional (openssl != null) openssl)
|
|
|
|
++ (lib.optional (gnutls != null) gnutls)
|
|
|
|
++ (lib.optional (libgcrypt != null) libgcrypt);
|
2007-08-16 23:14:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pkgconfig gtk perl perlXMLParser gettext
|
|
|
|
];
|
|
|
|
|
2014-10-18 08:22:37 +00:00
|
|
|
patches = [./pidgin-makefile.patch ./add-search-path.patch ];
|
2009-12-27 16:49:08 +00:00
|
|
|
|
2014-10-30 09:10:27 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-nspr-includes=${nspr}/include/nspr"
|
|
|
|
"--with-nspr-libs=${nspr}/lib"
|
|
|
|
"--with-nss-includes=${nss}/include/nss"
|
|
|
|
"--with-nss-libs=${nss}/lib"
|
|
|
|
"--with-ncurses-headers=${ncurses}/include"
|
|
|
|
"--disable-meanwhile"
|
|
|
|
"--disable-nm"
|
|
|
|
"--disable-tcl"
|
|
|
|
]
|
|
|
|
++ (lib.optionals (gnutls != null) ["--enable-gnutls=yes" "--enable-nss=no"]);
|
|
|
|
|
2014-02-01 07:43:33 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Multi-protocol instant messaging client";
|
2008-01-30 19:49:42 +00:00
|
|
|
homepage = http://pidgin.im;
|
2014-02-01 07:43:33 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2014-04-04 18:29:10 +00:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2007-06-26 11:49:45 +00:00
|
|
|
};
|
2007-05-13 14:22:24 +00:00
|
|
|
}
|