My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/libraries/gloox/default.nix

38 lines
865 B

10 years ago
{ 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;
10 years ago
let
version = "1.0.23";
10 years ago
in
stdenv.mkDerivation {
pname = "gloox";
inherit version;
10 years ago
src = fetchurl {
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
sha256 = "12jz8glg9zmyk0iyv1ywf5i0hq93dfq8lvn6lyjgy8730w66mjwp";
10 years ago
};
buildInputs = [ ]
++ optional zlibSupport zlib
++ optional sslSupport openssl
++ optional idnSupport libidn;
10 years ago
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;
10 years ago
};
}