3
0
Fork 0
forked from mirrors/nixpkgs

kics: init at 1.5.12

This commit is contained in:
psondej 2022-07-27 10:53:51 +02:00
parent e3f457d720
commit aa4613dc6c
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "kics";
version = "1.5.12";
src = fetchFromGitHub {
owner = "Checkmarx";
repo = "kics";
rev = "v${version}";
sha256 = "sha256-jHspStyjq5T9jzYDRYaf2gOI4F/X+h4nDn0PFUOHoBY=";
};
vendorSha256 = "sha256-q5NuuP04kOoLVj210s17fIW2cxrsC/tAyET8YYGai0M=";
subPackages = [ "cmd/console" ];
postInstall = ''
mv $out/bin/console $out/bin/kics
'';
ldflags = [
"-s" "-w"
"-X github.com/Checkmarx/kics/internal/constant.SCMCommits=${version}"
"-X github.com/Checkmarx/kics/internal/constants.Version=${version}"
];
meta = with lib; {
description = ''
Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development
cycle of your infrastructure-as-code with KICS by Checkmarx.
'';
homepage = "https://github.com/Checkmarx/kics";
license = licenses.asl20;
maintainers = with maintainers; [ patryk4815 ];
};
}

View file

@ -5692,6 +5692,8 @@ with pkgs;
ssh = openssh;
};
kics = callPackage ../tools/admin/kics { };
kramdown-asciidoc = callPackage ../tools/typesetting/kramdown-asciidoc { };
lychee = callPackage ../tools/networking/lychee { };