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
11with stdenv.lib;
12
13let
14 version = "1.0.20";
15in
16stdenv.mkDerivation rec {
17 name = "gloox-${version}";
18
19 src = fetchurl {
20 url = "http://camaya.net/download/gloox-${version}.tar.bz2";
21 sha256 = "1a6yhs42wcdm8az3983m3lx4d9296bw0amz5v3b4012g1xn0hhq2";
22 };
23
24 buildInputs = [ ]
25 ++ optional zlibSupport zlib
26 ++ optional sslSupport openssl
27 ++ optional idnSupport libidn;
28
29 meta = {
30 description = "A portable high-level Jabber/XMPP library for C++";
31 homepage = http://camaya.net/gloox;
32 license = licenses.gpl3;
33 maintainers = with maintainers; [ fuuzetsu ];
34 platforms = platforms.unix;
35 };
36}