2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 12:47:29 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-26 16:24:39 +00:00
|
|
|
, autoreconfHook
|
2021-01-05 12:47:29 +00:00
|
|
|
, libtool
|
|
|
|
, openssl
|
|
|
|
, expat
|
2020-12-26 16:24:39 +00:00
|
|
|
, pkg-config
|
2021-01-05 12:47:29 +00:00
|
|
|
, check
|
|
|
|
}:
|
2015-01-04 17:22:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libstrophe";
|
2021-01-05 12:47:29 +00:00
|
|
|
version = "0.10.1";
|
2015-01-04 17:22:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strophe";
|
2019-10-23 17:28:54 +01:00
|
|
|
repo = pname;
|
2015-01-04 17:22:47 +00:00
|
|
|
rev = version;
|
2020-12-26 16:24:39 +00:00
|
|
|
sha256 = "11d341avsfr0z4lq15cy5dkmff6qpy91wkgzdpfdy31l27pa1g79";
|
2015-01-04 17:22:47 +00:00
|
|
|
};
|
|
|
|
|
2020-12-26 16:24:39 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [ openssl expat libtool check ];
|
2015-01-04 17:22:47 +00:00
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-01-04 17:22:47 +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-02 05:20:00 +01:00
|
|
|
homepage = "https://strophe.im/libstrophe/";
|
2020-12-26 16:24:39 +00:00
|
|
|
license = with licenses; [ gpl3Only mit ];
|
2021-01-05 12:47:29 +00:00
|
|
|
platforms = platforms.unix;
|
2020-12-26 16:24:39 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-01-05 12:47:29 +00:00
|
|
|
maintainers = with maintainers; [ devhell flosse ];
|
2015-01-04 17:22:47 +00:00
|
|
|
};
|
|
|
|
}
|
2020-12-26 16:24:39 +00:00
|
|
|
|