1 { lib, buildGoModule, fetchFromGitHub }:
4 pname = "aws-iam-authenticator";
7 src = fetchFromGitHub {
8 owner = "kubernetes-sigs";
11 sha256 = "sha256-lopOFEWqRWZox/XniQX6OiQPWlmWJpnQ7yFueiTZpss=";
14 # Upstream has inconsistent vendoring, see https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/377
18 ldflags = let PKG = "sigs.k8s.io/aws-iam-authenticator"; in [
20 "-X ${PKG}/pkg.Version=${version}"
21 "-X ${PKG}/pkg.BuildDate=1970-01-01T01:01:01Z"
22 "-X ${PKG}/pkg.CommitID=${version}"
25 subPackages = [ "cmd/aws-iam-authenticator" ];
28 homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
29 description = "AWS IAM credentials for Kubernetes authentication";
30 license = licenses.asl20;
31 maintainers = [ maintainers.srhb ];