nixpkgs/pkgs/by-name/sh/shellcheck-sarif/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
771 B
Nix
Raw Normal View History

2023-11-10 02:41:53 +00:00
{
lib,
fetchCrate,
2023-11-10 02:41:53 +00:00
rustPlatform,
2024-07-15 18:23:56 +00:00
nix-update-script,
versionCheckHook,
2023-11-10 02:41:53 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "shellcheck-sarif";
2024-09-06 07:04:45 +00:00
version = "0.6.6";
2023-11-10 02:41:53 +00:00
src = fetchCrate {
inherit pname version;
2024-09-06 07:04:45 +00:00
hash = "sha256-NPf8BkrpqM/MaVha9/AIuUXPQpslslLFv0l9a0lzYyc=";
2023-11-10 02:41:53 +00:00
};
2024-09-06 07:04:45 +00:00
cargoHash = "sha256-YUyZZcSaBqnc216Hu+BAv1raNFRzSnikedr+/n8wTbE=";
2023-11-10 02:41:53 +00:00
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
2023-11-10 02:41:53 +00:00
2024-07-15 18:23:56 +00:00
passthru = {
updateScript = nix-update-script { };
};
2023-11-10 02:41:53 +00:00
meta = {
description = "CLI tool to convert shellcheck diagnostics into SARIF";
homepage = "https://psastras.github.io/sarif-rs";
license = lib.licenses.mit;
2024-07-15 18:23:56 +00:00
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "shellcheck-sarif";
2023-11-10 02:41:53 +00:00
};
}