2021-01-11 12:52:26 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-08-13 23:03:56 +00:00
|
|
|
|
2021-01-11 12:52:26 +00:00
|
|
|
buildGoModule rec {
|
2019-05-02 07:54:24 +00:00
|
|
|
pname = "aws-iam-authenticator";
|
2022-04-11 02:13:08 +00:00
|
|
|
version = "0.5.7";
|
2018-08-13 23:03:56 +00:00
|
|
|
|
2019-05-02 07:54:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-11 02:13:08 +00:00
|
|
|
sha256 = "sha256-nFHshmGZZMzssF2INdEqpvARkFjBpd7qNV9tabySABU=";
|
2018-08-13 23:03:56 +00:00
|
|
|
};
|
|
|
|
|
2021-06-09 09:03:12 +00:00
|
|
|
# Upstream has inconsistent vendoring, see https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/377
|
|
|
|
deleteVendor = true;
|
2022-02-18 01:50:31 +00:00
|
|
|
vendorSha256 = null;
|
2021-01-11 12:52:26 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=v${version}" ];
|
2021-02-08 08:53:39 +00:00
|
|
|
|
2021-02-09 19:20:09 +00:00
|
|
|
subPackages = [ "cmd/aws-iam-authenticator" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-13 23:03:56 +00:00
|
|
|
homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
|
|
|
|
description = "AWS IAM credentials for Kubernetes authentication";
|
2019-05-02 07:54:24 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.srhb ];
|
2018-08-13 23:03:56 +00:00
|
|
|
};
|
|
|
|
}
|