nixpkgs/pkgs/applications/networking/cluster/eks-node-viewer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
941 B
Nix
Raw Normal View History

2023-06-12 03:17:17 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, eks-node-viewer }:
buildGoModule rec {
pname = "eks-node-viewer";
2023-06-11 21:56:12 +00:00
version = "0.4.0";
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
2023-06-11 21:56:12 +00:00
sha256 = "sha256-p0n7ocoMBgM6i7e6yX+NDIkZBcJ3dT6VNWPihCheeC0=";
};
2023-06-11 21:56:12 +00:00
vendorHash = "sha256-L1lG+b7MiJQvLqZuLdSjh5zAaApvWdi9SZSDPvObW5w=";
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;
};
};
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;
maintainers = [ maintainers.ivankovnatsky ];
};
}