680538dbf3
Farsight was renamed to Farstream long ago and it is already listed as a dependency.
81 lines
2.3 KiB
Nix
81 lines
2.3 KiB
Nix
{ stdenv, fetchurl, makeWrapper, pkgconfig, gtk2, gtkspell2, aspell
|
|
, gst_all_1, startupnotification, gettext
|
|
, perl, perlXMLParser, libxml2, nss, nspr, farstream
|
|
, libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn
|
|
, lib, python, libICE, libXext, libSM
|
|
, openssl ? null
|
|
, gnutls ? null
|
|
, libgcrypt ? null
|
|
, plugins, symlinkJoin
|
|
}:
|
|
|
|
# FIXME: clean the mess around choosing the SSL library (nss by default)
|
|
|
|
let unwrapped = stdenv.mkDerivation rec {
|
|
name = "pidgin-${version}";
|
|
majorVersion = "2";
|
|
version = "${majorVersion}.12.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pidgin/${name}.tar.bz2";
|
|
sha256 = "1y5p2mq3bfw35b66jsafmbva0w5gg1k99y9z8fyp3jfksqv3agcc";
|
|
};
|
|
|
|
inherit nss ncurses;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
|
|
|
|
buildInputs = [
|
|
gtkspell2 aspell startupnotification
|
|
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
|
|
libxml2 nss nspr farstream
|
|
libXScrnSaver ncurses python
|
|
avahi dbus dbus_glib intltool libidn
|
|
libICE libXext libSM
|
|
]
|
|
++ (lib.optional (openssl != null) openssl)
|
|
++ (lib.optional (gnutls != null) gnutls)
|
|
++ (lib.optional (libgcrypt != null) libgcrypt);
|
|
|
|
propagatedBuildInputs = [
|
|
pkgconfig gtk2 perl perlXMLParser gettext
|
|
];
|
|
|
|
patches = [ ./pidgin-makefile.patch ./add-search-path.patch ];
|
|
|
|
configureFlags = [
|
|
"--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"
|
|
"--disable-meanwhile"
|
|
"--disable-nm"
|
|
"--disable-tcl"
|
|
]
|
|
++ (lib.optionals (gnutls != null) ["--enable-gnutls=yes" "--enable-nss=no"]);
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pidgin \
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Multi-protocol instant messaging client";
|
|
homepage = http://pidgin.im;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.vcunat ];
|
|
};
|
|
};
|
|
|
|
in if plugins == [] then unwrapped
|
|
else import ./wrapper.nix {
|
|
inherit stdenv makeWrapper symlinkJoin plugins;
|
|
pidgin = unwrapped;
|
|
}
|
|
|