nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 strace,
6 stdenv,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "strace-analyzer";
11 version = "0.5.4";
12
13 src = fetchFromGitHub {
14 owner = "wookietreiber";
15 repo = "strace-analyzer";
16 rev = "v${version}";
17 sha256 = "sha256-KbdQeZoWFz4D5txu/411J0HNnIAs3t5IvO30/34vBek=";
18 };
19
20 cargoHash = "sha256-ZvbWJSe/jQEswcdFM/Akb6hW/0iqMNbtEyzcxsbemFQ=";
21
22 nativeCheckInputs = [ strace ];
23
24 checkFlags = lib.optionals stdenv.hostPlatform.isAarch64 [
25 # thread 'analysis::tests::analyze_dd' panicked at 'assertion failed: ...'
26 "--skip=analysis::tests::analyze_dd"
27 ];
28
29 meta = {
30 description = "Analyzes strace output";
31 mainProgram = "strace-analyzer";
32 homepage = "https://github.com/wookietreiber/strace-analyzer";
33 license = lib.licenses.gpl3Plus;
34 maintainers = [ lib.maintainers.matthiasbeyer ];
35 };
36}