2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, autoreconfHook
|
2021-01-05 17:05:55 +00:00
|
|
|
, libtool
|
|
|
|
, openssl
|
|
|
|
, expat
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-01-05 17:05:55 +00:00
|
|
|
, check
|
2024-04-21 15:54:59 +00:00
|
|
|
, zlib
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libstrophe";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.13.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strophe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-JMuvWspgXs+1dVWoo6kJVaf6cVvYj8lhyyu4ZILKeOg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ openssl expat libtool check zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with 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-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ gpl3Only mit ];
|
2021-01-05 17:05:55 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ devhell flosse ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
2021-02-05 17:12:51 +00:00
|
|
|
|