nixpkgs/pkgs/applications/networking/cluster/kubelogin/default.nix
2021-08-26 21:35:06 +10:00

28 lines
671 B
Nix

{ lib, fetchFromGitHub, buildGoModule, go }:
buildGoModule rec {
pname = "kubelogin";
version = "0.0.10";
src = fetchFromGitHub {
owner = "Azure";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YLYyU3k3I74ZuczFZBwcJoJSfCR4B9Z1EbFupA+xkiE=";
};
vendorSha256 = "sha256-vJfTf9gD/qrsPAfJeMYLjGa90mYLOshgDehv2Fcl6xM=";
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 ];
};
}