mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
29 lines
787 B
Nix
29 lines
787 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubectl-images";
|
|
version = "0.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chenjiandongx";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-FHfj2qRypqQA0Vj9Hq7wuYd0xmpD+IZj3MkwKljQio0=";
|
|
};
|
|
|
|
vendorHash = "sha256-8zV2iZ10H5X6fkRqElfc7lOf3FhmDzR2lb3Jgyhjyio=";
|
|
|
|
postInstall = ''
|
|
mv $out/bin/cmd $out/bin/kubectl-images
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Show container images used in the cluster";
|
|
mainProgram = "kubectl-images";
|
|
homepage = "https://github.com/chenjiandongx/kubectl-images";
|
|
changelog = "https://github.com/chenjiandongx/kubectl-images/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ivankovnatsky ];
|
|
};
|
|
}
|