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-02-22 10:55:15 +00:00
|
|
|
version = "0.11.15";
|
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-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-fyTsB+1ftol3prNLydT/coLchip1vijmfLLt3/DnBbc=";
|
2023-02-02 18:25:31 +00:00
|
|
|
fetchSubmodules = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
cargoHash = "sha256-XBah55xfbWjQrkupebZE2uiveFhh/R0BF1KEKkY5Hx8=";
|
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-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 ];
|
|
|
|
};
|
|
|
|
}
|