mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
30 lines
706 B
Nix
30 lines
706 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubent";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "doitintl";
|
|
repo = "kube-no-trouble";
|
|
rev = "${version}";
|
|
sha256 = "sha256-QIvMhKAo30gInqJBpHvhcyjgVkdRqgBKwLQ80ng/75U=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-XXf6CPPHVvCTZA4Ve5/wmlgXQ/gZZUW0W/jXA0bJgLA=";
|
|
|
|
ldflags = [
|
|
"-w" "-s"
|
|
"-X main.version=v${version}"
|
|
];
|
|
|
|
subPackages = [ "cmd/kubent" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/doitintl/kube-no-trouble";
|
|
description = "Easily check your cluster for use of deprecated APIs";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterromfeldhk ];
|
|
};
|
|
}
|