2020-10-13 13:50:55 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "starboard";
|
2021-09-16 20:02:04 +01:00
|
|
|
version = "0.12.0";
|
2020-10-13 13:50:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aquasecurity";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-16 20:02:04 +01:00
|
|
|
sha256 = "sha256-6QIQsxqTKERo5x2Knv4IBeNt5KjvfoW0ryFJLlALqrA=";
|
2020-10-13 13:50:55 +01:00
|
|
|
};
|
|
|
|
|
2021-09-16 20:02:04 +01:00
|
|
|
vendorSha256 = "sha256-r6wMSeW5Et6hYwoEKufmcOmucuHlYuBDOMuXXMT4W2Y=";
|
2020-10-14 22:09:22 +01:00
|
|
|
|
2021-06-04 13:39:07 +01:00
|
|
|
# Don't build and check the integration tests
|
|
|
|
excludedPackages = "itest";
|
2020-10-13 13:50:55 +01:00
|
|
|
|
2021-08-21 09:23:47 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=v${version}"
|
|
|
|
];
|
2020-10-13 13:50:55 +01:00
|
|
|
|
2021-06-04 13:39:07 +01:00
|
|
|
preCheck = ''
|
|
|
|
# Remove test that requires networking
|
|
|
|
rm pkg/plugin/aqua/client/client_integration_test.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/starboard --help
|
|
|
|
$out/bin/starboard version | grep "v${version}"
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
2020-10-13 13:50:55 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-06-04 13:39:07 +01:00
|
|
|
homepage = "https://github.com/aquasecurity/starboard";
|
|
|
|
changelog = "https://github.com/aquasecurity/starboard/releases/tag/v${version}";
|
2020-10-13 13:50:55 +01:00
|
|
|
description = "Kubernetes-native security tool kit";
|
|
|
|
longDescription = ''
|
|
|
|
Starboard integrates security tools into the Kubernetes environment, so
|
|
|
|
that users can find and view the risks that relate to different resources
|
|
|
|
in a Kubernetes-native way. Starboard provides custom security resources
|
|
|
|
definitions and a Go module to work with a range of existing security
|
|
|
|
tools, as well as a kubectl-compatible command-line tool and an Octant
|
|
|
|
plug-in that make security reports available through familiar Kubernetes
|
|
|
|
tools.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jk ];
|
|
|
|
};
|
|
|
|
}
|