2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchCrate,
|
2024-06-20 14:57:18 +00:00
|
|
|
rustPlatform,
|
2024-07-27 06:49:29 +00:00
|
|
|
nix-update-script,
|
|
|
|
versionCheckHook,
|
2024-06-20 14:57:18 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hadolint-sarif";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.5.0";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-Zh3y31Q+ue1TqncZpdX+fAp2yfEnv8W8jkzUW7UvrKg=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-bwEQ9lZXvZL6JN24N8gRdbV5gcFiH1fQ59PQILfW1z8=";
|
|
|
|
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
passthru = {
|
2024-07-27 06:49:29 +00:00
|
|
|
updateScript = nix-update-script { };
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A CLI tool to convert hadolint diagnostics into SARIF";
|
|
|
|
homepage = "https://psastras.github.io/sarif-rs";
|
|
|
|
license = lib.licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
|
|
mainProgram = "hadolint-sarif";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
}
|