python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / aws-iam-authenticator / default.nix
blobb6ae17a611760b66517a75021c4967e08a4a0889
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "aws-iam-authenticator";
5   version = "0.5.9";
7   src = fetchFromGitHub {
8     owner = "kubernetes-sigs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-lopOFEWqRWZox/XniQX6OiQPWlmWJpnQ7yFueiTZpss=";
12   };
14   # Upstream has inconsistent vendoring, see https://github.com/kubernetes-sigs/aws-iam-authenticator/issues/377
15   deleteVendor = true;
16   vendorSha256 = null;
18   ldflags = let PKG = "sigs.k8s.io/aws-iam-authenticator"; in [
19     "-s" "-w"
20     "-X ${PKG}/pkg.Version=${version}"
21     "-X ${PKG}/pkg.BuildDate=1970-01-01T01:01:01Z"
22     "-X ${PKG}/pkg.CommitID=${version}"
23   ];
25   subPackages = [ "cmd/aws-iam-authenticator" ];
27   meta = with lib; {
28     homepage = "https://github.com/kubernetes-sigs/aws-iam-authenticator";
29     description = "AWS IAM credentials for Kubernetes authentication";
30     license = licenses.asl20;
31     maintainers = [ maintainers.srhb ];
32   };