kube-linter: 0.3.0 -> 0.4.0
This commit is contained in:
parent
1bf922e038
commit
fbdffd67ff
1 changed files with 14 additions and 4 deletions
|
@ -1,22 +1,31 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, testers, kube-linter }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kube-linter }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "kube-linter";
|
pname = "kube-linter";
|
||||||
version = "0.3.0";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "stackrox";
|
owner = "stackrox";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "ZqnD9zsh+r1RL34o1nAkvO1saKe721ZJ2+DgBjmsH58=";
|
sha256 = "XAsPbl9fqYk2nhDxRg5wyPwciwSpfigoBZ4hzdWAVgw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-tm1+2jsktNrw8S7peJz7w8k3+JwAYUgKfKWuQ8zIfvk=";
|
vendorSha256 = "sha256-0bjAIHSjw0kHrh9CzJHv1UAaBJDn6381055eOHufvCw=";
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
|
"-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd kube-linter \
|
||||||
|
--bash <($out/bin/kube-linter completion bash) \
|
||||||
|
--fish <($out/bin/kube-linter completion fish) \
|
||||||
|
--zsh <($out/bin/kube-linter completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = kube-linter;
|
package = kube-linter;
|
||||||
command = "kube-linter version";
|
command = "kube-linter version";
|
||||||
|
@ -27,5 +36,6 @@ buildGoModule rec {
|
||||||
homepage = "https://kubelinter.io";
|
homepage = "https://kubelinter.io";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ mtesseract stehessel ];
|
maintainers = with maintainers; [ mtesseract stehessel ];
|
||||||
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue