depot/third_party/nixpkgs/pkgs/by-name/pl/pluto/package.nix

36 lines
705 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "pluto";
version = "5.20.3";
src = fetchFromGitHub {
owner = "FairwindsOps";
repo = "pluto";
rev = "v${version}";
hash = "sha256-WbXIg453VewOejX/hyGi1DEi0cSwcQ+hKUFG8Ne4cPE=";
};
vendorHash = "sha256-VkaFANSzKOpmHWUwFp7YjwvsJegcJOrvJOBNNAIxOak=";
ldflags = [
"-w"
"-s"
"-X main.version=v${version}"
];
meta = with lib; {
homepage = "https://github.com/FairwindsOps/pluto";
description = "Find deprecated Kubernetes apiVersions";
mainProgram = "pluto";
license = licenses.asl20;
maintainers = with maintainers; [
peterromfeldhk
kashw2
];
};
}