2021-10-08 07:28:06 +00:00
|
|
|
{ lib
|
2021-12-23 05:07:22 +00:00
|
|
|
, stdenv
|
2021-10-08 07:28:06 +00:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cdk-go";
|
2023-03-15 02:20:14 +00:00
|
|
|
version = "1.5.2";
|
2021-10-08 07:28:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdk-team";
|
|
|
|
repo = "CDK";
|
2023-01-07 22:00:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 02:20:14 +00:00
|
|
|
hash = "sha256-jgGOSlhlLO1MU1mHWZgw+ov4IrZwMo2GdG6L25ah9Z8=";
|
2021-10-08 07:28:06 +00:00
|
|
|
};
|
|
|
|
|
2023-01-07 21:24:35 +00:00
|
|
|
vendorHash = "sha256-aJN/d/BxmleRXKw6++k6e0Vb0Gs5zg1QfakviABYTog=";
|
2021-10-08 07:28:06 +00:00
|
|
|
|
|
|
|
# At least one test is outdated
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Container penetration toolkit";
|
|
|
|
homepage = "https://github.com/cdk-team/CDK";
|
2023-01-07 22:00:15 +00:00
|
|
|
changelog = "https://github.com/cdk-team/CDK/releases/tag/v${version}";
|
2021-10-08 07:28:06 +00:00
|
|
|
license = with licenses; [ gpl2Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2021-10-11 01:16:09 +00:00
|
|
|
mainProgram = "cdk";
|
2021-12-23 05:07:22 +00:00
|
|
|
broken = stdenv.isDarwin; # needs to update gopsutil to at least v3.21.3 to include https://github.com/shirou/gopsutil/pull/1042
|
2021-10-08 07:28:06 +00:00
|
|
|
};
|
|
|
|
}
|