mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
34 lines
961 B
Nix
34 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 ];
|
|
};
|
|
}
|