2021-01-05 17:05:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, automake
|
|
|
|
, autoconf
|
|
|
|
, libtool
|
|
|
|
, openssl
|
|
|
|
, expat
|
|
|
|
, check
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libstrophe";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "0.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strophe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "sha256-6byg7hE0DN/cbf9NHpK/2DhXZyuelYAp+SA7vVUgo4U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf pkg-config libtool check ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl expat ];
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
preConfigure = "mkdir m4 && sh bootstrap.sh";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple, lightweight C library for writing XMPP clients";
|
|
|
|
longDescription = ''
|
|
|
|
libstrophe is a lightweight XMPP client library written in C. It has
|
|
|
|
minimal dependencies and is configurable for various environments. It
|
|
|
|
runs well on both Linux, Unix, and Windows based platforms.
|
|
|
|
'';
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://strophe.im/libstrophe/";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = with licenses; [ gpl3 mit ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ devhell flosse ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|