From dc043f86c77f1fa3ad81494316f1e95997192829 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Thu, 31 Oct 2024 20:01:03 +0100 Subject: [PATCH] zizmor: init at 0.1.4 https://woodruffw.github.io/zizmor/ --- pkgs/by-name/zi/zizmor/package.nix | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/zi/zizmor/package.nix diff --git a/pkgs/by-name/zi/zizmor/package.nix b/pkgs/by-name/zi/zizmor/package.nix new file mode 100644 index 000000000000..3ce77d3d1667 --- /dev/null +++ b/pkgs/by-name/zi/zizmor/package.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + pkg-config, + openssl, + testers, + zizmor, +}: + +rustPlatform.buildRustPackage rec { + pname = "zizmor"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "woodruffw"; + repo = "zizmor"; + rev = "v${version}"; + hash = "sha256-S2B4GQAqx4t9AZf3QDUhzku68j0buZdW0cLhmOiRssk="; + }; + + cargoHash = "sha256-hoZXR+zYuK/r4/r3QwIhTmMTCs5M0lMACH4QPEq07ZU="; + + buildInputs = [ openssl ]; + + nativeBuildInputs = [ pkg-config ]; + + passthru.tests.version = testers.testVersion { + package = zizmor; + }; + + meta = { + description = "Tool for finding security issues in GitHub Actions setups"; + homepage = "https://woodruffw.github.io/zizmor/"; + changelog = "https://github.com/woodruffw/zizmor/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ lesuisse ]; + mainProgram = "zizmor"; + }; +}