{ lib, fetchFromGitHub, buildGoModule, go }: buildGoModule rec { pname = "kubelogin"; version = "0.0.27"; src = fetchFromGitHub { owner = "Azure"; repo = pname; rev = "v${version}"; sha256 = "sha256-yC0J6uXL0W00o0BGIrrZ9WjThSgIu5fEgQdyH2vZESs="; }; vendorHash = "sha256-QGzaKtku7fm14ijmE68nqgqoX86IgmEsemlQltZECI0="; ldflags = [ "-X main.version=${version}" "-X main.goVersion=${lib.getVersion go}" ]; meta = with lib; { description = "A Kubernetes credential plugin implementing Azure authentication"; inherit (src.meta) homepage; license = licenses.mit; maintainers = with maintainers; [ yurrriq ]; }; }