2014-06-18 21:18:31 +00: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 22:56:33 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-06-18 21:18:31 +00:00
|
|
|
let
|
2019-12-23 13:49:31 +00:00
|
|
|
version = "1.0.23";
|
2014-06-18 21:18:31 +00:00
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "gloox";
|
|
|
|
inherit version;
|
2014-06-18 21:18:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
2019-12-23 13:49:31 +00:00
|
|
|
sha256 = "12jz8glg9zmyk0iyv1ywf5i0hq93dfq8lvn6lyjgy8730w66mjwp";
|
2014-06-18 21:18:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ]
|
2017-03-12 22:56:33 +00:00
|
|
|
++ optional zlibSupport zlib
|
|
|
|
++ optional sslSupport openssl
|
|
|
|
++ optional idnSupport libidn;
|
2014-06-18 21:18:31 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A portable high-level Jabber/XMPP library for C++";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://camaya.net/gloox";
|
2017-03-12 22:56:33 +00:00
|
|
|
license = licenses.gpl3;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-03-12 22:56:33 +00:00
|
|
|
platforms = platforms.unix;
|
2014-06-18 21:18:31 +00:00
|
|
|
};
|
|
|
|
}
|