Merge pull request #237281 from figsoda/eks

eks-node-viewer: fix license, fix version
This commit is contained in:
Weijia Wang 2023-06-12 11:45:40 +03:00 committed by GitHub
commit fd884c7e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, testers, eks-node-viewer }:
buildGoModule rec {
pname = "eks-node-viewer";
@ -13,11 +13,25 @@ buildGoModule rec {
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/${version}";
license = licenses.afl20;
changelog = "https://github.com/awslabs/eks-node-viewer/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = [ maintainers.ivankovnatsky ];
};
}