blob: 2f6540ce17582523d3c4c709fc520e6db224bff5 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildGoModule,
fetchFromGitHub,
kics,
testers,
}:
buildGoModule rec {
pname = "kics";
version = "2.1.7";
src = fetchFromGitHub {
owner = "Checkmarx";
repo = "kics";
tag = "v${version}";
hash = "sha256-fw0OjSR9f0EuXq+QcRwt1+k22UdhPI1lNmSUahckimE=";
};
vendorHash = "sha256-1Wr8649Yy3cAhj46YuRiHBiFtdWq/4M5H5lnLH+ThBE=";
subPackages = [ "cmd/console" ];
postInstall = ''
mv $out/bin/console $out/bin/kics
'';
ldflags = [
"-s"
"-w"
"-X=github.com/Checkmarx/kics/v2/internal/constants.SCMCommit=${version}"
"-X=github.com/Checkmarx/kics/v2/internal/constants.Version=${version}"
];
passthru.tests.version = testers.testVersion {
package = kics;
command = "kics version";
};
meta = with lib; {
description = "Tool to check for vulnerabilities and other issues";
longDescription = ''
Find security vulnerabilities, compliance issues, and
infrastructure misconfigurations early in the development
cycle of your infrastructure-as-code.
'';
homepage = "https://github.com/Checkmarx/kics";
changelog = "https://github.com/Checkmarx/kics/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ patryk4815 ];
mainProgram = "kics";
};
}
|