2016-03-06 23:08:46 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk, gtkspell, aspell
|
|
|
|
, gstreamer, gst_plugins_base, gst_plugins_good, startupnotification, gettext
|
2014-10-30 09:10:27 +00:00
|
|
|
, 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 15:22:24 +01:00
|
|
|
|
2014-10-23 11:53:41 +01: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";
|
2014-11-24 22:32:40 +00:00
|
|
|
version = "${majorVersion}.10.11";
|
2014-10-30 09:10:27 +00:00
|
|
|
|
2007-05-13 15:22:24 +01:00
|
|
|
src = fetchurl {
|
2012-03-17 17:12:48 +00:00
|
|
|
url = "mirror://sourceforge/pidgin/${name}.tar.bz2";
|
2014-11-24 22:32:40 +00:00
|
|
|
sha256 = "01s0q30qrjlzj7kkz6f8lvrwsdd55a9yjh2xjjwyyxzw849j3bpj";
|
2007-05-13 15:22:24 +01:00
|
|
|
};
|
|
|
|
|
2007-06-28 10:53:12 +01:00
|
|
|
inherit nss ncurses;
|
2014-10-30 09:10:27 +00:00
|
|
|
|
2016-03-06 23:08:46 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2007-05-13 15:22:24 +01:00
|
|
|
buildInputs = [
|
2007-08-17 00:14:52 +01:00
|
|
|
gtkspell aspell
|
2016-03-06 23:08:46 +00:00
|
|
|
gstreamer gst_plugins_base gst_plugins_good 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 11:30:55 +01: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-17 00:14:52 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pkgconfig gtk perl perlXMLParser gettext
|
|
|
|
];
|
|
|
|
|
2014-10-18 09:22:37 +01: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 = [
|
2015-10-05 16:45:54 +01:00
|
|
|
"--with-nspr-includes=${nspr.dev}/include/nspr"
|
|
|
|
"--with-nspr-libs=${nspr.out}/lib"
|
|
|
|
"--with-nss-includes=${nss.dev}/include/nss"
|
|
|
|
"--with-nss-libs=${nss.out}/lib"
|
|
|
|
"--with-ncurses-headers=${ncurses.dev}/include"
|
2014-10-30 09:10:27 +00:00
|
|
|
"--disable-meanwhile"
|
|
|
|
"--disable-nm"
|
|
|
|
"--disable-tcl"
|
|
|
|
]
|
|
|
|
++ (lib.optionals (gnutls != null) ["--enable-gnutls=yes" "--enable-nss=no"]);
|
|
|
|
|
2014-11-17 08:27:17 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-06 23:08:46 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/pidgin \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
|
|
'';
|
|
|
|
|
2014-02-01 07:43:33 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01: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 19:29:10 +01:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2007-06-26 12:49:45 +01:00
|
|
|
};
|
2007-05-13 15:22:24 +01:00
|
|
|
}
|