mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
37 lines
867 B
Nix
37 lines
867 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.21";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "gloox-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
|
sha256 = "1k57qgif1yii515m6jaqaibkdysfab6394bpawd2l67321f1a4rw";
|
|
};
|
|
|
|
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; [ fuuzetsu ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|