about summary refs log tree commit diff
path: root/pkgs/by-name/ha
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-06-09 16:47:59 +0200
committerGitHub <noreply@github.com>2024-06-09 16:47:59 +0200
commita42a547c8960d6ecc9e63a5e555daf07952330c1 (patch)
tree61bc64f15765d4128b6cf108b71fe629ab14aad3 /pkgs/by-name/ha
parentbad3a8fbfedaf196d7450134b1f0e4699e83439a (diff)
parent9cb732179e234045c7b8906fd0b046943cbb039c (diff)
Merge pull request #266577 from getchoo/pkgs/hadolint-sarif/init
hadolint-sarif: init at 0.4.2
Diffstat (limited to 'pkgs/by-name/ha')
-rw-r--r--pkgs/by-name/ha/hadolint-sarif/package.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/ha/hadolint-sarif/package.nix b/pkgs/by-name/ha/hadolint-sarif/package.nix
new file mode 100644
index 0000000000000..bf8f434296330
--- /dev/null
+++ b/pkgs/by-name/ha/hadolint-sarif/package.nix
@@ -0,0 +1,37 @@
+{
+  lib,
+  fetchFromGitHub,
+  rustPlatform,
+  hadolint-sarif,
+  testers,
+}:
+rustPlatform.buildRustPackage rec {
+  pname = "hadolint-sarif";
+  version = "0.4.2";
+
+  src = fetchFromGitHub {
+    owner = "psastras";
+    repo = "sarif-rs";
+    rev = "hadolint-sarif-v${version}";
+    hash = "sha256-EzWzDeIeSJ11CVcVyAhMjYQJcKHnieRrFkULc5eXAno=";
+  };
+
+  cargoHash = "sha256-AMRL1XANyze8bJe3fdgZvBnl/NyuWP13jixixqiPmiw=";
+  cargoBuildFlags = [
+    "--package"
+    "hadolint-sarif"
+  ];
+  cargoTestFlags = cargoBuildFlags;
+
+  passthru = {
+    tests.version = testers.testVersion { package = hadolint-sarif; };
+  };
+
+  meta = {
+    description = "A CLI tool to convert hadolint diagnostics into SARIF";
+    homepage = "https://psastras.github.io/sarif-rs";
+    mainProgram = "hadolint-sarif";
+    maintainers = with lib.maintainers; [ getchoo ];
+    license = lib.licenses.mit;
+  };
+}