2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, file , protobufc }:
|
2014-07-07 17:05:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-02 10:38:45 +01:00
|
|
|
pname = "riemann-c-client";
|
2021-10-29 02:38:48 +01:00
|
|
|
version = "1.10.5";
|
2014-07-07 17:05:30 +01:00
|
|
|
|
2015-05-24 02:01:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "algernon";
|
|
|
|
repo = "riemann-c-client";
|
2021-08-02 10:38:45 +01:00
|
|
|
rev = "riemann-c-client-${version}";
|
2021-10-29 02:38:48 +01:00
|
|
|
sha256 = "sha256-LuI9XFDPx0qw/+kkpXd0FOMESERAp31R1+ttkGuJnPA=";
|
2014-07-07 17:05:30 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ file protobufc ];
|
2014-07-07 17:05:30 +01:00
|
|
|
|
2018-03-20 07:00:16 +00:00
|
|
|
preBuild = ''
|
|
|
|
make lib/riemann/proto/riemann.pb-c.h
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/algernon/riemann-c-client";
|
2014-07-07 17:05:30 +01:00
|
|
|
description = "A C client library for the Riemann monitoring system";
|
|
|
|
license = licenses.gpl3;
|
2019-08-20 14:24:01 +01:00
|
|
|
maintainers = with maintainers; [ pradeepchhetri ];
|
2014-07-07 17:05:30 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|