iai-callgrind support

This commit is contained in:
Robin Appelman 2025-07-13 18:54:34 +02:00
commit 3821e5b444
6 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "iai-callgrind-runner";
version = "v0.15.2";
src = fetchFromGitHub {
owner = "iai-callgrind";
repo = "iai-callgrind";
rev = "v${finalAttrs.version}";
hash = "sha256-yOsO1qSkZ4OsAbdS6IqbY9bX6p3JPSxOuHa3W4UoPX8=";
};
cargoHash = "sha256-HvcSfLvZFJtkVFeu8DL2+e7PddJz/jJwh9aUtAV7gFY=";
buildAndTestSubdir = "iai-callgrind-runner";
doCheck = false;
meta = with lib; {
description = "High-precision and consistent benchmarking framework/harness for Rust";
homepage = "https://github.com/iai-callgrind/iai-callgrind";
license = licenses.mit;
mainProgram = "iai-callgrind-runner";
};
})