nixpkgs/pkgs/applications/networking/cluster/kubectl-images/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
752 B
Nix
Raw Normal View History

2022-10-07 18:23:16 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kubectl-images";
2023-06-02 15:48:14 +00:00
version = "0.6.1";
2022-10-07 18:23:16 +00:00
src = fetchFromGitHub {
owner = "chenjiandongx";
repo = pname;
rev = "v${version}";
2023-06-02 15:48:14 +00:00
sha256 = "sha256-Zs9ok5jDhNeEw+dbER0cpLYn41uXwHNx0w0t1A3CSlI=";
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.";
homepage = "https://github.com/chenjiandongx/kubectl-images";
changelog = "https://github.com/chenjiandongx/kubectl-images/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ maintainers.ivankovnatsky ];
};
}