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;
|
|
|
|
|
|
|
|
let
|
2016-01-03 21:30:23 +01:00
|
|
|
version = "1.0.14";
|
2014-06-18 23:18:31 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gloox-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://camaya.net/download/gloox-${version}.tar.bz2";
|
2016-01-03 21:30:23 +01:00
|
|
|
sha256 = "0h9r4382qv0vqc91x1qz1nivxw1r2l874s1kl0bskzm9dyk742sj";
|
2014-06-18 23:18:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ]
|
|
|
|
++ stdenv.lib.optional zlibSupport zlib
|
|
|
|
++ stdenv.lib.optional sslSupport openssl
|
|
|
|
++ stdenv.lib.optional idnSupport libidn;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A portable high-level Jabber/XMPP library for C++";
|
|
|
|
homepage = "http://camaya.net/gloox";
|
2014-09-30 11:35:10 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2014-06-18 23:18:31 +02:00
|
|
|
};
|
|
|
|
}
|