1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 pkg-config,
6 openssl,
7 capnproto,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "flowgger";
12 version = "0.3.2";
13
14 src = fetchCrate {
15 inherit pname version;
16 hash = "sha256-eybahv1A/AIpAXGj6/md8k+b9fu9gSchU16fnAWZP2s=";
17 };
18
19 cargoHash = "sha256-50/rg1Bo8wEpD9UT1EWIKNLglZLS1FigoPtZudDaL4c=";
20
21 nativeBuildInputs = [
22 pkg-config
23 capnproto
24 ];
25
26 buildInputs = [ openssl ];
27
28 checkFlags = [
29 # test failed
30 "--skip=flowgger::encoder::ltsv_encoder::test_ltsv_full_encode_multiple_sd"
31 "--skip=flowgger::encoder::ltsv_encoder::test_ltsv_full_encode_no_sd"
32 ];
33
34 meta = with lib; {
35 homepage = "https://github.com/awslabs/flowgger";
36 description = "Fast, simple and lightweight data collector written in Rust";
37 license = licenses.bsd2;
38 maintainers = [ ];
39 mainProgram = "flowgger";
40 };
41}