nixpkgs/pkgs/applications/networking/cluster/eks-node-viewer/default.nix
2023-06-11 23:17:17 -04:00

38 lines
941 B
Nix

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