diff options
| author | seth <[email protected]> | 2024-05-22 04:06:24 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-22 16:21:31 -0600 |
| commit | 2a936b25d71986b1044645179b2fa385f43c2bc2 (patch) | |
| tree | e9812277222ea999fdd1dcf97e6e110339b61b0f /pkgs/hadolint-sarif/package.nix | |
| parent | bf4a600a9d4b64e5f5afefc69ae67bc688734610 (diff) | |
treewide: enforce <dir>/package.nix
Diffstat (limited to 'pkgs/hadolint-sarif/package.nix')
| -rw-r--r-- | pkgs/hadolint-sarif/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/hadolint-sarif/package.nix b/pkgs/hadolint-sarif/package.nix new file mode 100644 index 0000000..44a813b --- /dev/null +++ b/pkgs/hadolint-sarif/package.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + hadolint-sarif, + testers, +}: +rustPlatform.buildRustPackage rec { + pname = "hadolint-sarif"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "psastras"; + repo = "sarif-rs"; + rev = "${pname}-v${version}"; + hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno="; + }; + + cargoSha256 = "sha256-AMRL1XANyze8bJe3fdgZvBnl/NyuWP13jixixqiPmiw="; + cargoBuildFlags = ["--package" pname]; + cargoTestFlags = cargoBuildFlags; + + passthru = { + tests.version = testers.testVersion { + package = hadolint-sarif; + }; + }; + + meta = with lib; { + mainProgram = "hadolint-sarif"; + description = "A CLI tool to convert hadolint diagnostics into SARIF"; + homepage = "https://psastras.github.io/sarif-rs"; + maintainers = with maintainers; [getchoo]; + license = licenses.mit; + }; +} |
