depot/third_party/nixpkgs/pkgs/tools/misc/flowgger/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

42 lines
934 B
Nix

{ lib
, rustPlatform
, stdenv
, fetchCrate
, pkg-config
, openssl
, capnproto
, CoreServices
}:
rustPlatform.buildRustPackage rec {
pname = "flowgger";
version = "0.3.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-PRlcfSVfQWt+rQEJjblY7/AMrjhGYO2/G7EX60aGApA=";
};
cargoHash = "sha256-hp2LrEVWo0gk95dPROqVcHEEG5N9fWms0mZkY9QILg0=";
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";
description = "A fast, simple and lightweight data collector written in Rust";
license = licenses.bsd2;
maintainers = with maintainers; [];
};
}