···1+{ lib
2+, btrfs-progs
3+, buildGoModule
4+, fetchFromGitHub
5+, lvm2
6+, pkg-config
7+}:
8+9+buildGoModule rec {
10+ pname = "kubeclarity";
11+ version = "2.18.0";
12+13+ src = fetchFromGitHub {
14+ owner = "openclarity";
15+ repo = pname;
16+ rev = "refs/tags/v${version}";
17+ hash = "sha256-qXBD3JurBU7RBemj+gr/tBGpfqKhwk5VPBKaTuM4URg=";
18+ };
19+20+ vendorHash = "sha256-L7g48EH3cuhgSZ87JoMVvv5nGDzjUpOufsikINCdhao=";
21+22+ nativeBuildInputs = [
23+ pkg-config
24+ ];
25+26+ buildInputs = [
27+ btrfs-progs
28+ lvm2
29+ ];
30+31+ sourceRoot = "${src.name}/cli";
32+33+ ldflags = [
34+ "-s"
35+ "-w"
36+ ];
37+38+ postInstall = ''
39+ mv $out/bin/cli $out/bin/kubeclarity
40+ '';
41+42+ meta = with lib; {
43+ description = "Kubernetes runtime scanner";
44+ longDescription = ''
45+ KubeClarity is a vulnerabilities scanning and CIS Docker benchmark tool that
46+ allows users to get an accurate and immediate risk assessment of their
47+ kubernetes clusters. Kubei scans all images that are being used in a
48+ Kubernetes cluster, including images of application pods and system pods.
49+ '';
50+ homepage = "https://github.com/openclarity/kubeclarity";
51+ changelog = "https://github.com/openclarity/kubeclarity/releases/tag/v${version}";
52+ license = with licenses; [ asl20 ];
53+ maintainers = with maintainers; [ fab ];
54+ };
55+}
-31
pkgs/tools/security/kubei/default.nix
···1-{ lib
2-, buildGoModule
3-, fetchFromGitHub
4-}:
5-6-buildGoModule rec {
7- pname = "kubei";
8- version = "1.0.12";
9-10- src = fetchFromGitHub {
11- owner = "Portshift";
12- repo = pname;
13- rev = version;
14- sha256 = "sha256-QUPRw8fQ6ahBLZox6m4+feYIrcgDnCTe72nMF8iAV+Y=";
15- };
16-17- vendorSha256 = "sha256-uWDQf0zcTTPBthK60bmGJBP/m+yUu5PvYAbwyd0dcWE=";
18-19- meta = with lib; {
20- description = "Kubernetes runtime scanner";
21- longDescription = ''
22- Kubei is a vulnerabilities scanning and CIS Docker benchmark tool that
23- allows users to get an accurate and immediate risk assessment of their
24- kubernetes clusters. Kubei scans all images that are being used in a
25- Kubernetes cluster, including images of application pods and system pods.
26- '';
27- homepage = "https://github.com/Portshift/kubei";
28- license = with licenses; [ asl20 ];
29- maintainers = with maintainers; [ fab ];
30- };
31-}
···0000000000000000000000000000000
+3-3
pkgs/tools/security/nmap-formatter/default.nix
···56buildGoModule rec {
7 pname = "nmap-formatter";
8- version = "2.0.4";
910 src = fetchFromGitHub {
11 owner = "vdjagilev";
12 repo = pname;
13 rev = "v${version}";
14- hash = "sha256-UIGXstgQMBMept9W+HhyE30WYWleaU9bUTX5frctrS8=";
15 };
1617- vendorSha256 = "sha256-VX/JVqCKhjBq67D7juHdgpzBgSjOHn0Pbmx9s04tinw=";
1819 meta = with lib; {
20 description = "Tool that allows you to convert nmap output";
···56buildGoModule rec {
7 pname = "nmap-formatter";
8+ version = "2.1.0";
910 src = fetchFromGitHub {
11 owner = "vdjagilev";
12 repo = pname;
13 rev = "v${version}";
14+ hash = "sha256-9DbX1pHI/G6aejVN6AgULOxnpawnJHTiYMiTq+crMJI=";
15 };
1617+ vendorHash = "sha256-OwyLY8y+HGxCteRqGEYvnVa6r27TwT9s9HyWKtvIxxI=";
1819 meta = with lib; {
20 description = "Tool that allows you to convert nmap output";
···812 krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
813 krita-beta = krita; # moved from top-level 2021-12-23
814 kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
0815 kubeless = throw "kubeless is deprecated and archived by upstream"; # Added 2022-04-05
816 kubicorn = throw "kubicorn has been dropped due to the lack of maintenance from upstream since 2019"; # Added 2022-05-30
817 kvm = throw "'kvm' has been renamed to/replaced by 'qemu_kvm'"; # Converted to throw 2022-02-22
···812 krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
813 krita-beta = krita; # moved from top-level 2021-12-23
814 kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
815+ kubei = kubeclarity; # Added 2023-05-20
816 kubeless = throw "kubeless is deprecated and archived by upstream"; # Added 2022-04-05
817 kubicorn = throw "kubicorn has been dropped due to the lack of maintenance from upstream since 2019"; # Added 2022-05-30
818 kvm = throw "'kvm' has been renamed to/replaced by 'qemu_kvm'"; # Converted to throw 2022-02-22