depot/third_party/nixpkgs/pkgs/tools/security/aws-iam-authenticator/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

33 lines
961 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "aws-iam-authenticator";
version = "0.5.9";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-lopOFEWqRWZox/XniQX6OiQPWlmWJpnQ7yFueiTZpss=";
};
# Upstream has inconsistent vendoring, see https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/377
deleteVendor = true;
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 ];
};
}