2021-01-11 13:52:26 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-08-14 01:03:56 +02:00
|
|
|
|
2021-01-11 13:52:26 +01:00
|
|
|
buildGoModule rec {
|
2019-05-02 09:54:24 +02:00
|
|
|
pname = "aws-iam-authenticator";
|
2022-07-07 02:55:39 +02:00
|
|
|
version = "0.5.9";
|
2018-08-14 01:03:56 +02:00
|
|
|
|
2019-05-02 09:54:24 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-07 02:55:39 +02:00
|
|
|
sha256 = "sha256-lopOFEWqRWZox/XniQX6OiQPWlmWJpnQ7yFueiTZpss=";
|
2018-08-14 01:03:56 +02:00
|
|
|
};
|
|
|
|
|
2021-06-09 11:03:12 +02:00
|
|
|
# Upstream has inconsistent vendoring, see https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/377
|
|
|
|
deleteVendor = true;
|
2022-02-18 02:50:31 +01:00
|
|
|
vendorSha256 = null;
|
2021-01-11 13:52:26 +01:00
|
|
|
|
2022-06-13 18:52:32 +02:00
|
|
|
ldflags = let PKG = "sigs.k8s.io/aws-iam-authenticator"; in [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X ${PKG}/pkg.Version=${version}"
|
|
|
|
"-X ${PKG}/pkg.BuildDate=1970-01-01T01:01:01Z"
|
|
|
|
"-X ${PKG}/pkg.CommitID=${version}"
|
|
|
|
];
|
2021-02-08 09:53:39 +01:00
|
|
|
|
2021-02-09 20:20:09 +01:00
|
|
|
subPackages = [ "cmd/aws-iam-authenticator" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-14 01:03:56 +02:00
|
|
|
homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
|
|
|
|
description = "AWS IAM credentials for Kubernetes authentication";
|
2019-05-02 09:54:24 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.srhb ];
|
2018-08-14 01:03:56 +02:00
|
|
|
};
|
|
|
|
}
|