2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, capnproto
|
|
|
|
, CoreServices
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "flowgger";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.3.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-eybahv1A/AIpAXGj6/md8k+b9fu9gSchU16fnAWZP2s=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-DZGyX3UDqCjB5NwCXcR8b9pXdq8qacd3nkqGp6vYb+U=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
capnproto
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optional stdenv.isDarwin CoreServices;
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# test failed
|
|
|
|
"--skip=flowgger::encoder::ltsv_encoder::test_ltsv_full_encode_multiple_sd"
|
|
|
|
"--skip=flowgger::encoder::ltsv_encoder::test_ltsv_full_encode_no_sd"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/awslabs/flowgger";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fast, simple and lightweight data collector written in Rust";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "flowgger";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|