2023-11-16 04:20:00 +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";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.6.27";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-8WLuz3+pn6BMnhZGUfRYj0IwOm6xuqd6zj+J2XbCPy4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-xCNuFO+J0NXq8CPZXB0R2RmLLH27Vh/GMrBKk+mGk04=";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
ldflags = let PKG = "sigs.k8s.io/aws-iam-authenticator"; in [
|
2023-11-16 04:20:00 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=${PKG}/pkg.Version=${version}"
|
|
|
|
"-X=${PKG}/pkg.BuildDate=1970-01-01T01:01:01Z"
|
|
|
|
"-X ?${PKG}/pkg.CommitID=${version}"
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "aws-iam-authenticator";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ srhb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|