2023-06-12 03:17:17 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, eks-node-viewer }:
|
2023-03-14 21:05:43 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eks-node-viewer";
|
2023-06-11 21:56:12 +00:00
|
|
|
version = "0.4.0";
|
2023-03-14 21:05:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-11 21:56:12 +00:00
|
|
|
sha256 = "sha256-p0n7ocoMBgM6i7e6yX+NDIkZBcJ3dT6VNWPihCheeC0=";
|
2023-03-14 21:05:43 +00:00
|
|
|
};
|
|
|
|
|
2023-06-11 21:56:12 +00:00
|
|
|
vendorHash = "sha256-L1lG+b7MiJQvLqZuLdSjh5zAaApvWdi9SZSDPvObW5w=";
|
2023-03-14 21:05:43 +00:00
|
|
|
|
2023-06-12 03:16:45 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.builtBy=nixpkgs"
|
|
|
|
"-X=main.commit=${src.rev}"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-06-12 03:17:17 +00:00
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = eks-node-viewer;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-14 21:05:43 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to visualize dynamic node usage within a cluster";
|
|
|
|
homepage = "https://github.com/awslabs/eks-node-viewer";
|
2023-06-12 03:16:45 +00:00
|
|
|
changelog = "https://github.com/awslabs/eks-node-viewer/releases/tag/${src.rev}";
|
2023-06-12 03:13:38 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-14 21:05:43 +00:00
|
|
|
maintainers = [ maintainers.ivankovnatsky ];
|
|
|
|
};
|
|
|
|
}
|