2014-06-18 23:18:31 +02:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, zlibSupport ? true, zlib ? null
|
|
|
|
, sslSupport ? true, openssl ? null
|
|
|
|
, idnSupport ? true, libidn ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert zlibSupport -> zlib != null;
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
assert idnSupport -> libidn != null;
|
|
|
|
|
2017-03-12 23:56:33 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-06-18 23:18:31 +02:00
|
|
|
let
|
2019-01-28 20:24:27 +01:00
|
|
|
version = "1.0.22";
|
2014-06-18 23:18:31 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gloox-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
2019-01-28 20:24:27 +01:00
|
|
|
sha256 = "0r69gq8if9yy1amjzl7qrq9lzhhna7qgz905ln4wvkwchha1ppja";
|
2014-06-18 23:18:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ]
|
2017-03-12 23:56:33 +01:00
|
|
|
++ optional zlibSupport zlib
|
|
|
|
++ optional sslSupport openssl
|
|
|
|
++ optional idnSupport libidn;
|
2014-06-18 23:18:31 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A portable high-level Jabber/XMPP library for C++";
|
2017-03-12 23:56:33 +01:00
|
|
|
homepage = http://camaya.net/gloox;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ fuuzetsu ];
|
|
|
|
platforms = platforms.unix;
|
2014-06-18 23:18:31 +02:00
|
|
|
};
|
|
|
|
}
|