2021-08-27 13:54:40 +00:00
|
|
|
{ fetchCrate, lib, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "inferno";
|
2022-07-28 03:19:58 +00:00
|
|
|
version = "0.11.7";
|
2021-08-27 13:54:40 +00:00
|
|
|
|
|
|
|
# github version doesn't have a Cargo.lock
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-07-28 03:19:58 +00:00
|
|
|
sha256 = "sha256-HZBCLgWC9yEo3lY7If18SILKZV3rwHv7FBVdumiTbJg=";
|
2021-08-27 13:54:40 +00:00
|
|
|
};
|
|
|
|
|
2022-07-28 03:19:58 +00:00
|
|
|
cargoSha256 = "sha256-upO+G9569NXFuc2vpxR6E4nxJqCjg+RMlxV7oKb7v1E=";
|
2021-08-27 13:54:40 +00:00
|
|
|
|
|
|
|
# these tests depend on a patched version of flamegraph which is included in
|
|
|
|
# the github repository as a submodule, but absent from the crates version
|
|
|
|
checkFlags = [
|
|
|
|
"--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"
|
2022-07-28 03:19:58 +00:00
|
|
|
"--skip=collapse::perf::tests::test_multiple_skip_after"
|
|
|
|
"--skip=collapse::perf::tests::test_one_skip_after"
|
2021-08-27 13:54:40 +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 ];
|
|
|
|
};
|
|
|
|
}
|