1{ lib
2, stdenv
3, buildGoModule
4, fetchFromGitHub
5}:
6
7buildGoModule rec {
8 pname = "cdk-go";
9 version = "1.5.2";
10
11 src = fetchFromGitHub {
12 owner = "cdk-team";
13 repo = "CDK";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-jgGOSlhlLO1MU1mHWZgw+ov4IrZwMo2GdG6L25ah9Z8=";
16 };
17
18 vendorHash = "sha256-aJN/d/BxmleRXKw6++k6e0Vb0Gs5zg1QfakviABYTog=";
19
20 # At least one test is outdated
21 doCheck = false;
22
23 meta = with lib; {
24 description = "Container penetration toolkit";
25 homepage = "https://github.com/cdk-team/CDK";
26 changelog = "https://github.com/cdk-team/CDK/releases/tag/v${version}";
27 license = with licenses; [ gpl2Only ];
28 maintainers = with maintainers; [ fab ];
29 mainProgram = "cdk";
30 broken = stdenv.isDarwin; # needs to update gopsutil to at least v3.21.3 to include https://github.com/shirou/gopsutil/pull/1042
31 };
32}