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