diff options
author | psondej <patryk.sondej@grupawp.pl> | 2022-07-27 10:53:51 +0200 |
---|---|---|
committer | psondej <patryk.sondej@grupawp.pl> | 2022-07-27 10:53:51 +0200 |
commit | aa4613dc6c065adb5741fd2bb7f9e1d4ccd9ee48 (patch) | |
tree | e5dff6db0017e6d5c3e3a4d983d36c69484fb8e7 /pkgs/tools/admin/kics | |
parent | e3f457d720159ad405875fbef6eebac31ecdd931 (diff) |
kics: init at 1.5.12
Diffstat (limited to 'pkgs/tools/admin/kics')
-rw-r--r-- | pkgs/tools/admin/kics/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/admin/kics/default.nix b/pkgs/tools/admin/kics/default.nix new file mode 100644 index 0000000000000..c6cc5db402783 --- /dev/null +++ b/pkgs/tools/admin/kics/default.nix @@ -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 ]; + }; +} |