{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "kubelogin"; version = "1.27.0"; src = fetchFromGitHub { owner = "int128"; repo = pname; rev = "v${version}"; sha256 = "sha256-oBgth4lAQP4UrFIk/AErlfyyCgPrugs5wQJDFxqGum0="; }; subPackages = ["."]; vendorHash = "sha256-IJCbh1ryyk0r72SrVEiI7K5nIFf1+UGjTkXaNKpGsmo="; # Rename the binary instead of symlinking to avoid conflict with the # Azure version of kubelogin postInstall = '' mv $out/bin/kubelogin $out/bin/kubectl-oidc_login ''; meta = with lib; { description = "A Kubernetes credential plugin implementing OpenID Connect (OIDC) authentication"; inherit (src.meta) homepage; license = licenses.asl20; maintainers = with maintainers; [ benley ]; }; }