depot/third_party/nixpkgs/pkgs/tools/security/aws-iam-authenticator/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

37 lines
1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "aws-iam-authenticator";
version = "0.6.20";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-72l+EgqWy8+7wdTKwXnebZ+wm5VCgYODw4D6lkL4NBA=";
};
vendorHash = "sha256-7FYR8c1Q9SS3prt8yrTzbOqgqG1tGuvzjH42MkY0tAo=";
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";
mainProgram = "aws-iam-authenticator";
changelog = "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ srhb ];
};
}