2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2022-05-18 14:49:53 +00:00
|
|
|
, zlibSupport ? true, zlib
|
|
|
|
, sslSupport ? true, openssl
|
|
|
|
, idnSupport ? true, libidn
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec{
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gloox";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.0.28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-WRvRLCSe3gtQoe9rmawN6O+cG6T9Lhhvl6dAIVzFlmw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
# needed since gcc12
|
|
|
|
postPatch = ''
|
|
|
|
sed '1i#include <ctime>' -i \
|
|
|
|
src/tests/{tag/tag_perf.cpp,zlib/zlib_perf.cpp} \
|
|
|
|
src/examples/*.cpp
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optional zlibSupport zlib
|
|
|
|
++ lib.optional sslSupport openssl
|
|
|
|
++ lib.optional idnSupport libidn;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A portable high-level Jabber/XMPP library for C++";
|
|
|
|
homepage = "http://camaya.net/gloox";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|