biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / aws-iam-authenticator / default.nix
blob657a2923d2f968c5211a97632b8d808d2700e5d0
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "aws-iam-authenticator";
8   version = "0.6.27";
10   src = fetchFromGitHub {
11     owner = "kubernetes-sigs";
12     repo = pname;
13     rev = "refs/tags/v${version}";
14     hash = "sha256-8WLuz3+pn6BMnhZGUfRYj0IwOm6xuqd6zj+J2XbCPy4=";
15   };
17   vendorHash = "sha256-xCNuFO+J0NXq8CPZXB0R2RmLLH27Vh/GMrBKk+mGk04=";
19   ldflags = let PKG = "sigs.k8s.io/aws-iam-authenticator"; in [
20     "-s"
21     "-w"
22     "-X=${PKG}/pkg.Version=${version}"
23     "-X=${PKG}/pkg.BuildDate=1970-01-01T01:01:01Z"
24     "-X ?${PKG}/pkg.CommitID=${version}"
25   ];
27   subPackages = [ "cmd/aws-iam-authenticator" ];
29   meta = with lib; {
30     homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
31     description = "AWS IAM credentials for Kubernetes authentication";
32     mainProgram = "aws-iam-authenticator";
33     changelog = "https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/tag/v${version}";
34     license = licenses.asl20;
35     maintainers = with maintainers; [ srhb ];
36   };