2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitea, autoreconfHook, check, pkg-config, file, protobufc
|
|
|
|
,withWolfSSL ? false, wolfssl
|
|
|
|
,withGnuTLS ? false, gnutls
|
|
|
|
,withJSON ? true, json_c
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "riemann-c-client";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.madhouse-project.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "algernon";
|
|
|
|
repo = "riemann-c-client";
|
2021-09-18 10:52:07 +00:00
|
|
|
rev = "riemann-c-client-${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-FIhTT57g2uZBaH3EPNxNUNJn9n+0ZOhI6WMyF+xIr/Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook check pkg-config ];
|
|
|
|
buildInputs = [ file protobufc ]
|
|
|
|
++ lib.optional withWolfSSL wolfssl
|
|
|
|
++ lib.optional withGnuTLS gnutls
|
|
|
|
++ lib.optional withJSON json_c
|
|
|
|
;
|
|
|
|
|
|
|
|
configureFlags = []
|
|
|
|
++ lib.optional withWolfSSL "--with-tls=wolfssl"
|
|
|
|
++ lib.optional withGnuTLS "--with-tls=gnutls"
|
|
|
|
;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://git.madhouse-project.org/algernon/riemann-c-client";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A C client library for the Riemann monitoring system";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pradeepchhetri ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|