diff options
author | seth <getchoo@tuta.io> | 2023-11-09 21:41:53 -0500 |
---|---|---|
committer | seth <getchoo@tuta.io> | 2024-05-08 16:44:45 -0400 |
commit | e26bfee964c393ecfb01de7486dd2b65def79b49 (patch) | |
tree | 280ecc8daa4ceaf3306ede86079041bf3d7cf0a8 /pkgs/by-name/sh | |
parent | 47709b6fb2ab89d397a6df96ea4b3efa883e6010 (diff) |
shellcheck-sarif: init at 0.4.2
Diffstat (limited to 'pkgs/by-name/sh')
-rw-r--r-- | pkgs/by-name/sh/shellcheck-sarif/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/sh/shellcheck-sarif/package.nix b/pkgs/by-name/sh/shellcheck-sarif/package.nix new file mode 100644 index 0000000000000..83492cfd39f8f --- /dev/null +++ b/pkgs/by-name/sh/shellcheck-sarif/package.nix @@ -0,0 +1,37 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + shellcheck-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "shellcheck-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoHash = "sha256-JuE/Z0qrS/3BRlb0jTGDfV0TYk74Q75X1wv/IERxqeQ="; + cargoBuildFlags = [ + "--package" + pname + ]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { package = shellcheck-sarif; }; + }; + + meta = { + description = "A CLI tool to convert shellcheck diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + mainProgram = "shellcheck-sarif"; + maintainers = with lib.maintainers; [ getchoo ]; + license = lib.licenses.mit; + }; +} |