blob: f650394ef0e4f8062b5034c2e44cbca1e3c5daba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, buildGoModule, fetchFromGitHub, testers, kubent }:
buildGoModule rec {
pname = "kubent";
version = "0.7.1";
src = fetchFromGitHub {
owner = "doitintl";
repo = "kube-no-trouble";
rev = version;
sha256 = "sha256-fJRaahK/tDns+edi1GIdYRk4+h2vbY2LltZN2hxvKGI=";
};
vendorHash = "sha256-nEc0fngop+0ju8hDu7nowBsioqCye15Jo1mRlM0TtlQ=";
ldflags = [
"-w" "-s"
"-X main.version=v${version}"
];
subPackages = [ "cmd/kubent" ];
passthru.tests.version = testers.testVersion {
package = kubent;
command = "kubent --version";
version = "v${version}";
};
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 ];
};
}
|