depot/third_party/nixpkgs/pkgs/development/libraries/gloox/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

37 lines
894 B
Nix

{ lib, stdenv, fetchurl
, zlibSupport ? true, zlib
, sslSupport ? true, openssl
, idnSupport ? true, libidn
}:
stdenv.mkDerivation rec{
pname = "gloox";
version = "1.0.28";
src = fetchurl {
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
sha256 = "sha256-WRvRLCSe3gtQoe9rmawN6O+cG6T9Lhhvl6dAIVzFlmw=";
};
# needed since gcc12
postPatch = ''
sed '1i#include <ctime>' -i \
src/tests/{tag/tag_perf.cpp,zlib/zlib_perf.cpp} \
src/examples/*.cpp
'';
buildInputs = [ ]
++ lib.optional zlibSupport zlib
++ lib.optional sslSupport openssl
++ lib.optional idnSupport libidn;
meta = with lib; {
description = "Portable high-level Jabber/XMPP library for C++";
mainProgram = "gloox-config";
homepage = "http://camaya.net/gloox";
license = licenses.gpl3;
maintainers = [ ];
platforms = platforms.unix;
};
}