mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
32 lines
871 B
Nix
32 lines
871 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "aws-iam-authenticator";
|
|
version = "0.6.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubernetes-sigs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-4bZnGgf/H2/uLhh8ip8rrA+U0vA+1SO5uhjLK40j3wE=";
|
|
};
|
|
|
|
vendorHash = "sha256-RcZqnyZtonE4qeu+llL1OPGPG93/Rx8ESWM5wapZ1BM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|