pidgin: build with cyrus_sasl for SASL in IRC and XMPP

SASL is required to connect to Freenode on high-abuse networks, e.g. highly
NATed networks or Tor. However, Pidgin only supports PLAIN authorization type,
and Freenode specifically prohibits using anything other than EXTERNAL or
ECDSA-NIST256P-CHALLENGE over Tor. It still allows PLAIN for potentially
problematic clearnet networks, though.
This commit is contained in:
Yegor Timoshenko 2018-01-07 16:38:35 +00:00
parent 92dbe72331
commit 27459e2020
No known key found for this signature in database
GPG key ID: C34BF9DCC9DF8210

View file

@ -3,6 +3,7 @@
, perl, perlXMLParser, libxml2, nss, nspr, farstream
, libXScrnSaver, ncurses, avahi, dbus, dbus_glib, intltool, libidn
, lib, python, libICE, libXext, libSM
, cyrus_sasl ? null
, openssl ? null
, gnutls ? null
, libgcrypt ? null
@ -33,7 +34,7 @@ let unwrapped = stdenv.mkDerivation rec {
libxml2 nss nspr farstream
libXScrnSaver ncurses python
avahi dbus dbus_glib intltool libidn
libICE libXext libSM
libICE libXext libSM cyrus_sasl
]
++ (lib.optional (openssl != null) openssl)
++ (lib.optional (gnutls != null) gnutls)
@ -55,6 +56,7 @@ let unwrapped = stdenv.mkDerivation rec {
"--disable-nm"
"--disable-tcl"
]
++ (lib.optionals (cyrus_sasl != null) [ "--enable-cyrus-sasl=yes" ])
++ (lib.optionals (gnutls != null) ["--enable-gnutls=yes" "--enable-nss=no"]);
enableParallelBuilding = true;
@ -78,4 +80,3 @@ in if plugins == [] then unwrapped
inherit stdenv makeWrapper symlinkJoin plugins;
pidgin = unwrapped;
}