1{ stdenv, fetchurl
2, zlibSupport ? true, zlib ? null
3, sslSupport ? true, openssl ? null
4, idnSupport ? true, libidn ? null
5}:
6
7assert zlibSupport -> zlib != null;
8assert sslSupport -> openssl != null;
9assert idnSupport -> libidn != null;
10
11let
12 version = "1.0.14";
13in
14stdenv.mkDerivation rec {
15 name = "gloox-${version}";
16
17 src = fetchurl {
18 url = "http://camaya.net/download/gloox-${version}.tar.bz2";
19 sha256 = "0h9r4382qv0vqc91x1qz1nivxw1r2l874s1kl0bskzm9dyk742sj";
20 };
21
22 buildInputs = [ ]
23 ++ stdenv.lib.optional zlibSupport zlib
24 ++ stdenv.lib.optional sslSupport openssl
25 ++ stdenv.lib.optional idnSupport libidn;
26
27 meta = {
28 description = "A portable high-level Jabber/XMPP library for C++";
29 homepage = "http://camaya.net/gloox";
30 license = stdenv.lib.licenses.gpl3;
31 maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
32 platforms = with stdenv.lib.platforms; unix;
33 };
34}