2020-11-13 22:46:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "starboard-octant-plugin";
|
2021-05-18 18:19:47 +02:00
|
|
|
version = "0.10.3";
|
2020-11-13 22:46:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aquasecurity";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-18 18:19:47 +02:00
|
|
|
sha256 = "sha256-9vl068ZTw6Czf+cWQ0k1lU0pqh7P0YZgLguHkk3M918=";
|
2020-11-13 22:46:24 +01:00
|
|
|
};
|
|
|
|
|
2021-05-18 18:19:47 +02:00
|
|
|
vendorSha256 = "sha256-HOvZPDVKZEoL91yyaJRuKThHirY77xlKOtLKARthxn8=";
|
2020-11-13 22:46:24 +01:00
|
|
|
|
2021-05-18 18:19:47 +02:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-s -w")
|
|
|
|
'';
|
2021-01-27 16:50:54 +01:00
|
|
|
|
2020-11-13 22:46:24 +01:00
|
|
|
meta = with lib; {
|
2021-05-18 18:19:47 +02:00
|
|
|
homepage = "https://github.com/aquasecurity/starboard-octant-plugin";
|
|
|
|
changelog = "https://github.com/aquasecurity/starboard-octant-plugin/releases/tag/v${version}";
|
2020-11-13 22:46:24 +01:00
|
|
|
description = "Octant plugin for viewing Starboard security information";
|
|
|
|
longDescription = ''
|
|
|
|
This is an Octant plugin for Starboard which provides visibility into vulnerability assessment reports for
|
|
|
|
Kubernetes workloads stored as custom security resources.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jk ];
|
|
|
|
};
|
|
|
|
}
|