2020-06-30 18:31:49 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk2, gtk2-x11
|
|
|
|
, gtkspell2, aspell
|
2016-09-28 02:20:17 +02:00
|
|
|
, gst_all_1, startupnotification, gettext
|
2018-10-13 00:56:15 +02:00
|
|
|
, perlPackages, libxml2, nss, nspr, farstream
|
2018-02-25 03:23:58 +01:00
|
|
|
, libXScrnSaver, ncurses, avahi, dbus, dbus-glib, intltool, libidn
|
2014-10-30 10:10:27 +01:00
|
|
|
, lib, python, libICE, libXext, libSM
|
2018-01-07 17:38:35 +01:00
|
|
|
, cyrus_sasl ? null
|
2014-10-30 10:10:27 +01:00
|
|
|
, openssl ? null
|
|
|
|
, gnutls ? null
|
|
|
|
, libgcrypt ? null
|
2016-06-09 12:19:44 +02:00
|
|
|
, plugins, symlinkJoin
|
2014-10-30 10:10:27 +01:00
|
|
|
}:
|
2007-05-13 16:22:24 +02:00
|
|
|
|
2014-10-23 12:53:41 +02:00
|
|
|
# FIXME: clean the mess around choosing the SSL library (nss by default)
|
|
|
|
|
2016-06-09 12:19:44 +02:00
|
|
|
let unwrapped = stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pidgin";
|
2014-11-16 20:42:19 +01:00
|
|
|
majorVersion = "2";
|
2018-05-19 19:41:26 +02:00
|
|
|
version = "${majorVersion}.13.0";
|
2014-10-30 10:10:27 +01:00
|
|
|
|
2007-05-13 16:22:24 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/pidgin/${pname}-${version}.tar.bz2";
|
2018-05-19 19:41:26 +02:00
|
|
|
sha256 = "13vdqj70315p9rzgnbxjp9c51mdzf1l4jg1kvnylc4bidw61air7";
|
2007-05-13 16:22:24 +02:00
|
|
|
};
|
|
|
|
|
2007-06-28 11:53:12 +02:00
|
|
|
inherit nss ncurses;
|
2014-10-30 10:10:27 +01:00
|
|
|
|
2016-03-07 00:08:46 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2016-09-28 02:20:17 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
|
|
|
|
2007-05-13 16:22:24 +02:00
|
|
|
buildInputs = [
|
2020-06-30 18:31:49 +02:00
|
|
|
aspell startupnotification
|
2016-09-28 02:20:17 +02:00
|
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
|
2020-06-30 18:31:49 +02:00
|
|
|
libxml2 nss nspr
|
2010-01-11 14:25:05 +01:00
|
|
|
libXScrnSaver ncurses python
|
2018-02-25 03:23:58 +01:00
|
|
|
avahi dbus dbus-glib intltool libidn
|
2018-01-07 17:38:35 +01:00
|
|
|
libICE libXext libSM cyrus_sasl
|
2008-09-06 12:30:55 +02:00
|
|
|
]
|
2014-10-30 10:10:27 +01:00
|
|
|
++ (lib.optional (openssl != null) openssl)
|
|
|
|
++ (lib.optional (gnutls != null) gnutls)
|
2020-06-30 18:31:49 +02:00
|
|
|
++ (lib.optional (libgcrypt != null) libgcrypt)
|
2020-06-30 22:24:51 +02:00
|
|
|
++ (lib.optionals (stdenv.isLinux) [gtk2 gtkspell2 farstream])
|
2020-06-30 18:31:49 +02:00
|
|
|
++ (lib.optional (stdenv.isDarwin) gtk2-x11);
|
2007-08-17 01:14:52 +02:00
|
|
|
|
2020-06-30 18:31:49 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pkgconfig gettext ]
|
|
|
|
++ (with perlPackages; [ perl XMLParser ])
|
|
|
|
++ (lib.optional (stdenv.isLinux) gtk2)
|
|
|
|
++ (lib.optional (stdenv.isDarwin) gtk2-x11);
|
2007-08-17 01:14:52 +02:00
|
|
|
|
2016-09-28 02:20:17 +02:00
|
|
|
patches = [ ./pidgin-makefile.patch ./add-search-path.patch ];
|
2009-12-27 17:49:08 +01:00
|
|
|
|
2014-10-30 10:10:27 +01:00
|
|
|
configureFlags = [
|
2015-10-05 17:45:54 +02: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 10:10:27 +01:00
|
|
|
"--disable-meanwhile"
|
|
|
|
"--disable-nm"
|
|
|
|
"--disable-tcl"
|
|
|
|
]
|
2018-01-07 17:38:35 +01:00
|
|
|
++ (lib.optionals (cyrus_sasl != null) [ "--enable-cyrus-sasl=yes" ])
|
2020-06-30 22:24:51 +02:00
|
|
|
++ (lib.optionals (gnutls != null) ["--enable-gnutls=yes" "--enable-nss=no"])
|
|
|
|
++ (lib.optionals (stdenv.isDarwin) ["--disable-gtkspell" "--disable-vv"]);
|
2014-10-30 10:10:27 +01:00
|
|
|
|
2014-11-17 09:27:17 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-07 00:08:46 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/pidgin \
|
2019-04-05 12:03:47 +02:00
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
2016-03-07 00:08:46 +01:00
|
|
|
'';
|
|
|
|
|
2014-02-01 08:43:33 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Multi-protocol instant messaging client";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://pidgin.im";
|
2014-02-01 08:43:33 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-06-30 18:31:49 +02:00
|
|
|
platforms = platforms.unix;
|
2014-04-04 20:29:10 +02:00
|
|
|
maintainers = [ maintainers.vcunat ];
|
2007-06-26 13:49:45 +02:00
|
|
|
};
|
2016-06-09 12:19:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
in if plugins == [] then unwrapped
|
|
|
|
else import ./wrapper.nix {
|
2018-07-21 18:04:16 +02:00
|
|
|
inherit makeWrapper symlinkJoin plugins;
|
2016-06-09 12:19:44 +02:00
|
|
|
pidgin = unwrapped;
|
|
|
|
}
|