nixpkgs/pkgs/development/libraries/gloox/default.nix

34 lines
873 B
Nix
Raw Normal View History

2014-06-18 17:18:31 -04:00
{ 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;
let
2015-03-24 18:33:46 -04:00
version = "1.0.13";
2014-06-18 17:18:31 -04:00
in
stdenv.mkDerivation rec {
name = "gloox-${version}";
src = fetchurl {
url = "http://camaya.net/download/gloox-${version}.tar.bz2";
2015-03-24 18:33:46 -04:00
sha256 = "12payqyx1ly8nm3qn24bj0kyy9d08sixnjqxw7fn6rbwr7m1x7sd";
2014-06-18 17:18:31 -04:00
};
buildInputs = [ ]
++ stdenv.lib.optional zlibSupport zlib
++ stdenv.lib.optional sslSupport openssl
++ stdenv.lib.optional idnSupport libidn;
meta = {
description = "A portable high-level Jabber/XMPP library for C++";
homepage = "http://camaya.net/gloox";
2014-09-30 05:35:10 -04:00
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
2014-06-18 17:18:31 -04:00
};
}