2023-02-02 18:25:31 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "inferno";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.11.16";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonhoo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-hCrDvlC547ee/ZYj+7tnJTKGMPxams6/WJvvBsr7CvE=";
|
2023-02-02 18:25:31 +00:00
|
|
|
fetchSubmodules = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-J7P84aU/3/hvZlr06gpN98QXqRoe2Z6IQ91RbgB4Ohc=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# skip flaky tests
|
2021-09-18 10:52:07 +00:00
|
|
|
checkFlags = [
|
2023-08-22 20:05:09 +00:00
|
|
|
"--skip=collapse::dtrace::tests::test_collapse_multi_dtrace"
|
|
|
|
"--skip=collapse::dtrace::tests::test_collapse_multi_dtrace_simple"
|
|
|
|
"--skip=collapse::perf::tests::test_collapse_multi_perf"
|
|
|
|
"--skip=collapse::perf::tests::test_collapse_multi_perf_simple"
|
2023-02-02 18:25:31 +00:00
|
|
|
"--skip=flamegraph_base_symbol"
|
|
|
|
"--skip=flamegraph_multiple_base_symbol"
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A port of parts of the flamegraph toolkit to Rust";
|
|
|
|
homepage = "https://github.com/jonhoo/inferno";
|
|
|
|
changelog = "https://github.com/jonhoo/inferno/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.cddl;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|