nixpkgs-suyu/pkgs/tools/security/aws-iam-authenticator/default.nix

34 lines
961 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "aws-iam-authenticator";
2022-07-07 02:55:39 +02:00
version = "0.5.9";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = pname;
rev = "v${version}";
2022-07-07 02:55:39 +02:00
sha256 = "sha256-lopOFEWqRWZox/XniQX6OiQPWlmWJpnQ7yFueiTZpss=";
};
# 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;
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}"
];
subPackages = [ "cmd/aws-iam-authenticator" ];
meta = with lib; {
homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
description = "AWS IAM credentials for Kubernetes authentication";
license = licenses.asl20;
maintainers = [ maintainers.srhb ];
};
}