mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
38 lines
941 B
Nix
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 ];
|
|
};
|
|
}
|