2007-05-13 07:22:24 -07:00
|
|
|
/**
|
|
|
|
* Possible missing configuration:
|
|
|
|
*
|
|
|
|
* - silcclient
|
|
|
|
* - libebook-1.2
|
|
|
|
* - libedata-book-1.2
|
|
|
|
* - checking for XScreenSaverRegister in -lXext... no
|
|
|
|
* - checking for XScreenSaverRegister in -lXss... no
|
|
|
|
* - ao
|
|
|
|
* - audiofile-config
|
|
|
|
* - doxygen
|
|
|
|
*/
|
2007-05-13 17:51:30 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk, gtkspell, aspell,
|
2012-03-14 15:44:52 -07:00
|
|
|
gstreamer, gst_plugins_base, startupnotification, gettext,
|
2009-12-27 08:49:08 -08:00
|
|
|
perl, perlXMLParser, libxml2, nss, nspr, farsight2,
|
2009-12-23 13:05:29 -08:00
|
|
|
libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn
|
2010-01-11 05:25:05 -08:00
|
|
|
, lib, python
|
2008-09-06 03:30:55 -07:00
|
|
|
, openssl ? null
|
|
|
|
, gnutls ? null
|
2011-04-13 03:03:07 -07:00
|
|
|
, libgcrypt ? null
|
2007-05-13 07:22:24 -07:00
|
|
|
} :
|
|
|
|
|
2014-10-23 03:53:41 -07:00
|
|
|
# FIXME: clean the mess around choosing the SSL library (nss by default)
|
|
|
|
|
2012-03-17 10:12:48 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-18 01:22:37 -07:00
|
|
|
majorVersion = "2";
|
2014-10-23 03:53:41 -07:00
|
|
|
name = "pidgin-${majorVersion}.10.10";
|
2007-05-13 07:22:24 -07:00
|
|
|
src = fetchurl {
|
2012-03-17 10:12:48 -07:00
|
|
|
url = "mirror://sourceforge/pidgin/${name}.tar.bz2";
|
2014-10-23 03:53:41 -07:00
|
|
|
sha256 = "0bc2bk2g3w90mpz9sn9j95c71z4i2i3wxaqa2zpmmixf5r8rasyw";
|
2007-05-13 07:22:24 -07:00
|
|
|
};
|
|
|
|
|
2007-06-28 02:53:12 -07:00
|
|
|
inherit nss ncurses;
|
2007-05-13 07:22:24 -07:00
|
|
|
buildInputs = [
|
2007-08-16 16:14:52 -07:00
|
|
|
gtkspell aspell
|
2012-03-14 15:44:52 -07:00
|
|
|
gstreamer gst_plugins_base startupnotification
|
2008-09-06 03:30:55 -07:00
|
|
|
libxml2]
|
|
|
|
++ (lib.optional (openssl != null) openssl)
|
|
|
|
++ (lib.optional (gnutls != null) gnutls)
|
2011-04-13 03:03:07 -07:00
|
|
|
++ (lib.optional (libgcrypt != null) libgcrypt)
|
2008-09-06 03:30:55 -07:00
|
|
|
++
|
2009-12-27 08:49:08 -08:00
|
|
|
[nss nspr farsight2
|
2010-01-11 05:25:05 -08:00
|
|
|
libXScrnSaver ncurses python
|
2009-12-23 13:05:29 -08:00
|
|
|
avahi dbus dbus_glib intltool libidn
|
2008-09-06 03:30:55 -07:00
|
|
|
]
|
|
|
|
;
|
2007-08-16 16:14:52 -07:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pkgconfig gtk perl perlXMLParser gettext
|
|
|
|
];
|
|
|
|
|
2014-10-18 01:22:37 -07:00
|
|
|
patches = [./pidgin-makefile.patch ./add-search-path.patch ];
|
2009-12-27 08:49:08 -08: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"
|
2008-09-06 11:23:55 -07:00
|
|
|
+ (lib.optionalString (gnutls != null) " --enable-gnutls=yes --enable-nss=no")
|
|
|
|
;
|
2014-01-31 23:43:33 -08:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "Multi-protocol instant messaging client";
|
2008-01-30 11:49:42 -08:00
|
|
|
homepage = http://pidgin.im;
|
2014-01-31 23:43:33 -08:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2014-04-04 11:29:10 -07:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2007-06-26 04:49:45 -07:00
|
|
|
};
|
2007-05-13 07:22:24 -07:00
|
|
|
}
|