8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
37 lines
865 B
Nix
37 lines
865 B
Nix
{ 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;
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
version = "1.0.23";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "gloox";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
|
sha256 = "12jz8glg9zmyk0iyv1ywf5i0hq93dfq8lvn6lyjgy8730w66mjwp";
|
|
};
|
|
|
|
buildInputs = [ ]
|
|
++ optional zlibSupport zlib
|
|
++ optional sslSupport openssl
|
|
++ optional idnSupport libidn;
|
|
|
|
meta = {
|
|
description = "A portable high-level Jabber/XMPP library for C++";
|
|
homepage = "http://camaya.net/gloox";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|