2022-09-30 11:47:45 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, amazon-ecr-credential-helper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "amazon-ecr-credential-helper";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-ecr-credential-helper";
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
sha256 = "sha256-TRYBZiddnN6wCErSLKCr9JEH/Ldxg+Oh2hA63+EwRjo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = null;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
modRoot = "./ecr-login";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/awslabs/amazon-ecr-credential-helper/ecr-login/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = amazon-ecr-credential-helper;
|
|
|
|
command = "docker-credential-ecr-login -v";
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Amazon ECR Docker Credential Helper is a credential helper for the Docker daemon that makes it easier to use Amazon Elastic Container Registry";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/awslabs/amazon-ecr-credential-helper";
|
2022-01-22 01:22:15 +00:00
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "docker-credential-ecr-login";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|