2021-02-13 14:23:35 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "aws-iam-authenticator";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.5.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-5QtNAcInp1mUE8SHUUMS8/XURbPx/q8xMsvEEo/rnCs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# Upstream has inconsistent vendoring, see https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/377
|
|
|
|
deleteVendor = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
vendorSha256 = null;
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=v${version}" ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/aws-iam-authenticator" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
|
|
|
|
description = "AWS IAM credentials for Kubernetes authentication";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.srhb ];
|
|
|
|
};
|
|
|
|
}
|