From e26bfee964c393ecfb01de7486dd2b65def79b49 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 9 Nov 2023 21:41:53 -0500 Subject: shellcheck-sarif: init at 0.4.2 --- pkgs/by-name/sh/shellcheck-sarif/package.nix | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/sh/shellcheck-sarif/package.nix (limited to 'pkgs/by-name/sh/shellcheck-sarif/package.nix') 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; + }; +} -- cgit 1.4.1