9 rustPlatform.buildRustPackage rec {
14 inherit pname version;
15 hash = "sha256-0LyTXyycdIq0FuBTxE9D7FRFfn4iZnDKOt+Rk4P1HwU=";
18 cargoHash = "sha256-UpVZtZ3d0N/uL9+yc1gIO3SQsoqvUBMEDjdl9SDSKd8=";
20 # `test_clippy` (the only test we enable) is broken on Darwin
21 # because `--enable-profiler` is not enabled in rustc on Darwin
22 # error[E0463]: can't find crate for profiler_builtins
23 doCheck = !stdenv.hostPlatform.isDarwin;
26 # these tests use nix so...no go
27 "--skip=test_clang_tidy"
28 "--skip=test_hadolint"
29 "--skip=test_shellcheck"
31 # requires files not present in the crates.io tarball
35 nativeInstallCheckInputs = [ versionCheckHook ];
36 doInstallCheck = true;
39 updateScript = nix-update-script { };
43 description = "A CLI tool to pretty print SARIF diagnostics";
44 homepage = "https://psastras.github.io/sarif-rs";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ getchoo ];
47 mainProgram = "sarif-fmt";