about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/gloox
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gloox')
-rw-r--r--nixpkgs/pkgs/development/libraries/gloox/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gloox/default.nix b/nixpkgs/pkgs/development/libraries/gloox/default.nix
new file mode 100644
index 000000000000..ef731b3c35a6
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/gloox/default.nix
@@ -0,0 +1,37 @@
+{ 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.24";
+in
+stdenv.mkDerivation {
+  pname = "gloox";
+  inherit version;
+
+  src = fetchurl {
+    url = "https://camaya.net/download/gloox-${version}.tar.bz2";
+    sha256 = "1jgrd07qr9jvbb5hcmhrqz4w4lvwc51m30jls1fgxf1f5az6455f";
+  };
+
+  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; [ ];
+    platforms = platforms.unix;
+  };
+}