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
|
2018-10-12 23:56:15 +01:00
|
|
|
, perlPackages, libxml2, nss, nspr, farstream
|
2018-02-25 02:23:58 +00:00
|
|
|
, libXScrnSaver, ncurses, avahi, dbus, dbus-glib, intltool, libidn
|
2014-10-30 09:10:27 +00:00
|
|
|
, lib, python, libICE, libXext, libSM
|
2018-01-07 16:38:35 +00:00
|
|
|
, cyrus_sasl ? null
|
2014-10-30 09:10:27 +00:00
|
|
|
, 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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pidgin";
|
2014-11-16 19:42:19 +00:00
|
|
|
majorVersion = "2";
|
2018-05-19 18:41:26 +01:00
|
|
|
version = "${majorVersion}.13.0";
|
2014-10-30 09:10:27 +00:00
|
|
|
|
2007-05-13 15:22:24 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/pidgin/${pname}-${version}.tar.bz2";
|
2018-05-19 18:41:26 +01:00
|
|
|
sha256 = "13vdqj70315p9rzgnbxjp9c51mdzf1l4jg1kvnylc4bidw61air7";
|
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
|
2017-08-29 18:23:25 +01:00
|
|
|
libxml2 nss nspr farstream
|
2010-01-11 13:25:05 +00:00
|
|
|
libXScrnSaver ncurses python
|
2018-02-25 02:23:58 +00:00
|
|
|
avahi dbus dbus-glib intltool libidn
|
2018-01-07 16:38:35 +00:00
|
|
|
libICE libXext libSM cyrus_sasl
|
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
|
|
|
|
2018-10-12 23:56:15 +01:00
|
|
|
propagatedBuildInputs = [ pkgconfig gtk2 gettext ]
|
|
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
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"
|
|
|
|
]
|
2018-01-07 16:38:35 +00:00
|
|
|
++ (lib.optionals (cyrus_sasl != null) [ "--enable-cyrus-sasl=yes" ])
|
2014-10-30 09:10:27 +00:00
|
|
|
++ (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 \
|
2019-04-05 11:03:47 +01:00
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
2016-03-06 23:08:46 +00:00
|
|
|
'';
|
|
|
|
|
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 {
|
2018-07-21 17:04:16 +01:00
|
|
|
inherit makeWrapper symlinkJoin plugins;
|
2016-06-09 11:19:44 +01:00
|
|
|
pidgin = unwrapped;
|
|
|
|
}
|