1{ stdenv, fetchFromGitHub, automake, autoconf, libtool, openssl, expat, pkgconfig, check }:
2
3stdenv.mkDerivation rec {
4 name = "libstrophe-${version}";
5 version = "0.9.2";
6
7 src = fetchFromGitHub {
8 owner = "strophe";
9 repo = "libstrophe";
10 rev = version;
11 sha256 = "1milna92h8wzxax8ll362zvb70091nmfks5lmd105vk0478zraca";
12 };
13
14 nativeBuildInputs = [ pkgconfig ];
15 buildInputs = [ automake autoconf openssl expat libtool check ];
16
17 dontDisableStatic = true;
18
19 preConfigure = "mkdir m4 && sh bootstrap.sh";
20
21 doCheck = true;
22
23 meta = {
24 description = "A simple, lightweight C library for writing XMPP clients";
25 longDescription = ''
26 libstrophe is a lightweight XMPP client library written in C. It has
27 minimal dependencies and is configurable for various environments. It
28 runs well on both Linux, Unix, and Windows based platforms.
29 '';
30 homepage = http://strophe.im/libstrophe/;
31 license = with stdenv.lib.licenses; [gpl3 mit];
32 platforms = stdenv.lib.platforms.linux;
33 maintainers = with stdenv.lib.maintainers; [devhell flosse];
34 };
35}