2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk2, gtkspell2, aspell
|
2016-09-28 01:20:17 +01:00
|
|
|
, gst_all_1, startupnotification, gettext
|
|
|
|
, perl, perlXMLParser, libxml2, nss, nspr, farstream, farsight2
|
2014-10-30 09:10:27 +00:00
|
|
|
, libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn
|
|
|
|
, lib, python, libICE, libXext, libSM
|
|
|
|
, openssl ? null
|
|
|
|
, gnutls ? null
|
|
|
|
, libgcrypt ? null
|
2016-06-09 11:19:44 +01:00
|
|
|
, plugins, symlinkJoin
|
2014-10-30 09:10:27 +00:00
|
|
|
}:
|
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)
|
|
|
|
|
2016-06-09 11:19:44 +01:00
|
|
|
let unwrapped = stdenv.mkDerivation rec {
|
2014-10-30 09:10:27 +00:00
|
|
|
name = "pidgin-${version}";
|
2014-11-16 19:42:19 +00:00
|
|
|
majorVersion = "2";
|
2016-09-28 01:20:17 +01:00
|
|
|
version = "${majorVersion}.11.0";
|
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";
|
2016-09-28 01:20:17 +01:00
|
|
|
sha256 = "0crkggjj6y07v1kdwil9vw532b0vrs6p33nmlvdkpnl60m2169pp";
|
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 ];
|
|
|
|
|
2016-09-28 01:20:17 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
|
|
|
|
2007-05-13 15:22:24 +01:00
|
|
|
buildInputs = [
|
2016-09-28 01:20:17 +01:00
|
|
|
gtkspell2 aspell startupnotification
|
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
|
|
|
|
libxml2 nss nspr farstream 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 = [
|
2016-09-11 22:24:51 +01:00
|
|
|
pkgconfig gtk2 perl perlXMLParser gettext
|
2007-08-17 00:14:52 +01:00
|
|
|
];
|
|
|
|
|
2016-09-28 01:20:17 +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
|
|
|
};
|
2016-06-09 11:19:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in if plugins == [] then unwrapped
|
|
|
|
else import ./wrapper.nix {
|
|
|
|
inherit stdenv makeWrapper symlinkJoin plugins;
|
|
|
|
pidgin = unwrapped;
|
|
|
|
}
|
|
|
|
|