2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchurl
|
2014-06-18 14:18:31 -07:00
|
|
|
, zlibSupport ? true, zlib ? null
|
|
|
|
, sslSupport ? true, openssl ? null
|
|
|
|
, idnSupport ? true, libidn ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert zlibSupport -> zlib != null;
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
assert idnSupport -> libidn != null;
|
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
with lib;
|
2017-03-12 15:56:33 -07:00
|
|
|
|
2014-06-18 14:18:31 -07:00
|
|
|
let
|
2020-08-01 01:02:05 -07:00
|
|
|
version = "1.0.24";
|
2014-06-18 14:18:31 -07:00
|
|
|
in
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "gloox";
|
|
|
|
inherit version;
|
2014-06-18 14:18:31 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
2020-08-01 01:02:05 -07:00
|
|
|
sha256 = "1jgrd07qr9jvbb5hcmhrqz4w4lvwc51m30jls1fgxf1f5az6455f";
|
2014-06-18 14:18:31 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ]
|
2017-03-12 15:56:33 -07:00
|
|
|
++ optional zlibSupport zlib
|
|
|
|
++ optional sslSupport openssl
|
|
|
|
++ optional idnSupport libidn;
|
2014-06-18 14:18:31 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A portable high-level Jabber/XMPP library for C++";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://camaya.net/gloox";
|
2017-03-12 15:56:33 -07:00
|
|
|
license = licenses.gpl3;
|
2019-12-04 23:29:48 -08:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-03-12 15:56:33 -07:00
|
|
|
platforms = platforms.unix;
|
2014-06-18 14:18:31 -07:00
|
|
|
};
|
|
|
|
}
|