2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, strace
|
2023-05-24 13:37:59 +00:00
|
|
|
, stdenv
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "strace-analyzer";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.5.4";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wookietreiber";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-KbdQeZoWFz4D5txu/411J0HNnIAs3t5IvO30/34vBek=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-t1BFc5cNOQJIbufFH2hHI4f7SMrZ5mwVODXukdbHf3M=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ strace ];
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
checkFlags = lib.optionals stdenv.hostPlatform.isAarch64 [
|
2023-05-24 13:37:59 +00:00
|
|
|
# thread 'analysis::tests::analyze_dd' panicked at 'assertion failed: ...'
|
|
|
|
"--skip=analysis::tests::analyze_dd"
|
|
|
|
];
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Analyzes strace output";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "strace-analyzer";
|
2022-12-02 08:20:57 +00:00
|
|
|
homepage = "https://github.com/wookietreiber/strace-analyzer";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
}
|