2022-10-07 18:23:16 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubectl-images";
|
2023-06-23 13:21:45 +00:00
|
|
|
version = "0.6.3";
|
2022-10-07 18:23:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chenjiandongx";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-23 13:21:45 +00:00
|
|
|
sha256 = "sha256-FHfj2qRypqQA0Vj9Hq7wuYd0xmpD+IZj3MkwKljQio0=";
|
2022-10-07 18:23:16 +00:00
|
|
|
};
|
|
|
|
|
2023-06-02 15:48:14 +00:00
|
|
|
vendorHash = "sha256-8zV2iZ10H5X6fkRqElfc7lOf3FhmDzR2lb3Jgyhjyio=";
|
2022-10-07 18:23:16 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/kubectl-images
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Show container images used in the cluster";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "kubectl-images";
|
2022-10-07 18:23:16 +00:00
|
|
|
homepage = "https://github.com/chenjiandongx/kubectl-images";
|
|
|
|
changelog = "https://github.com/chenjiandongx/kubectl-images/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ivankovnatsky ];
|
|
|
|
};
|
|
|
|
}
|