mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "aws-iam-authenticator";
|
|
version = "0.6.27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubernetes-sigs";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-8WLuz3+pn6BMnhZGUfRYj0IwOm6xuqd6zj+J2XbCPy4=";
|
|
};
|
|
|
|
vendorHash = "sha256-xCNuFO+J0NXq8CPZXB0R2RmLLH27Vh/GMrBKk+mGk04=";
|
|
|
|
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 ];
|
|
};
|
|
}
|